summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blocks/Block.cpp6
-rw-r--r--source/blocks/BlockCrops.h2
-rw-r--r--source/blocks/BlockLeaves.h2
3 files changed, 4 insertions, 6 deletions
diff --git a/source/blocks/Block.cpp b/source/blocks/Block.cpp
index 2fa1ba718..3d2fe23e6 100644
--- a/source/blocks/Block.cpp
+++ b/source/blocks/Block.cpp
@@ -261,10 +261,10 @@ void cBlockHandler::DropBlock(cWorld *a_World, int a_X, int a_Y, int a_Z)
cItems Drops;
NIBBLETYPE Meta = a_World->GetBlockMeta(a_X, a_Y, a_Z);
char DropCount = GetDropCount();
- int DropItem = GetDropID();
- if(DropCount > 0 && DropItem != E_ITEM_EMPTY)
+ short DropItem = (short)GetDropID();
+ if (DropCount > 0 && (DropItem != E_ITEM_EMPTY))
{
- Drops.push_back(cItem((ENUM_ITEM_ID)DropItem, DropCount, GetDropMeta(Meta)));
+ Drops.push_back(cItem(DropItem, DropCount, GetDropMeta(Meta)));
a_World->SpawnItemPickups(Drops, a_X, a_Y, a_Z);
}
}
diff --git a/source/blocks/BlockCrops.h b/source/blocks/BlockCrops.h
index fb4934540..b5b543e76 100644
--- a/source/blocks/BlockCrops.h
+++ b/source/blocks/BlockCrops.h
@@ -31,8 +31,6 @@ public:
MTRand rand;
NIBBLETYPE Meta = a_World->GetBlockMeta(a_X, a_Y, a_Z);
- ENUM_ITEM_ID Drop = E_ITEM_EMPTY;
-
cItems Drops;
if(Meta & 0x7) //Is Wheat
diff --git a/source/blocks/BlockLeaves.h b/source/blocks/BlockLeaves.h
index 57cfad5da..c7bca92ac 100644
--- a/source/blocks/BlockLeaves.h
+++ b/source/blocks/BlockLeaves.h
@@ -12,7 +12,7 @@
#define PROCESS_NEIGHBOR(x,y,z) \
switch (a_Area.GetBlockType(x, y, z)) \
{ \
- case E_BLOCK_LEAVES: a_Area.SetBlockType(x, y, z, E_BLOCK_SPONGE + i + 1); break; \
+ case E_BLOCK_LEAVES: a_Area.SetBlockType(x, y, z, (BLOCKTYPE)(E_BLOCK_SPONGE + i + 1)); break; \
case E_BLOCK_LOG: return true; \
}