From 0cb00996de574095fac49e181a11e6a766248743 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Fri, 16 Aug 2013 10:48:19 +0200 Subject: Replaced E_ENTITY_TYPE_XXX with cMonster::mtXXX. Also slightly improved the spawning algorithm. --- source/Items/ItemSpawnEgg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Items/ItemSpawnEgg.h') diff --git a/source/Items/ItemSpawnEgg.h b/source/Items/ItemSpawnEgg.h index e563d7e15..5ba0c0ad5 100644 --- a/source/Items/ItemSpawnEgg.h +++ b/source/Items/ItemSpawnEgg.h @@ -33,7 +33,7 @@ public: a_BlockY--; } - if (a_World->SpawnMob(a_BlockX + 0.5, a_BlockY, a_BlockZ + 0.5, a_Item.m_ItemDamage) >= 0) + if (a_World->SpawnMob(a_BlockX + 0.5, a_BlockY, a_BlockZ + 0.5, (cMonster::eType)(a_Item.m_ItemDamage)) >= 0) { if (a_Player->GetGameMode() != 1) { -- cgit v1.2.3