summaryrefslogtreecommitdiffstats
path: root/source/Mobs/Chicken.cpp
diff options
context:
space:
mode:
authortonibm19 <tonibm19@gmail.com>2013-11-08 17:16:36 +0100
committertonibm19 <tonibm19@gmail.com>2013-11-08 17:16:36 +0100
commit705e6c13016cc00952ccba9f537dd71b7c666c74 (patch)
treebdd55be47c13a2c44e89efaa005e8b313d600500 /source/Mobs/Chicken.cpp
parentChanged variable name (diff)
downloadcuberite-705e6c13016cc00952ccba9f537dd71b7c666c74.tar
cuberite-705e6c13016cc00952ccba9f537dd71b7c666c74.tar.gz
cuberite-705e6c13016cc00952ccba9f537dd71b7c666c74.tar.bz2
cuberite-705e6c13016cc00952ccba9f537dd71b7c666c74.tar.lz
cuberite-705e6c13016cc00952ccba9f537dd71b7c666c74.tar.xz
cuberite-705e6c13016cc00952ccba9f537dd71b7c666c74.tar.zst
cuberite-705e6c13016cc00952ccba9f537dd71b7c666c74.zip
Diffstat (limited to '')
-rw-r--r--source/Mobs/Chicken.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/source/Mobs/Chicken.cpp b/source/Mobs/Chicken.cpp
index ec9edb961..318f8a813 100644
--- a/source/Mobs/Chicken.cpp
+++ b/source/Mobs/Chicken.cpp
@@ -1,4 +1,3 @@
-
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "Chicken.h"
@@ -13,7 +12,7 @@
cChicken::cChicken(void) :
super("Chicken", mtChicken, "mob.chicken.hurt", "mob.chicken.hurt", 0.3, 0.4),
- m_DropEggCount(0)
+ m_EggDropTimer(0)
{
}
@@ -24,23 +23,23 @@ void cChicken::Tick(float a_Dt, cChunk & a_Chunk)
{
super::Tick(a_Dt, a_Chunk);
- if (m_DropEggCount == 6000 && m_World->GetTickRandomNumber(1) == 0)
+ if (m_EggDropTimer == 6000 && m_World->GetTickRandomNumber(1) == 0)
{
cItems Drops;
- m_DropEggCount = 0;
+ m_EggDropTimer = 0;
Drops.push_back(cItem(E_ITEM_EGG, 1));
m_World->SpawnItemPickups(Drops, GetPosX(), GetPosY(), GetPosZ(), 10);
}
- else if (m_DropEggCount == 12000)
+ else if (m_EggDropTimer == 12000)
{
cItems Drops;
- m_DropEggCount = 0;
+ m_EggDropTimer = 0;
Drops.push_back(cItem(E_ITEM_EGG, 1));
m_World->SpawnItemPickups(Drops, GetPosX(), GetPosY(), GetPosZ(), 10);
}
else
{
- m_DropEggCount++;
+ m_EggDropTimer++;
}
}