diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-01 22:38:20 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-01 22:38:20 +0100 |
commit | 4cebaa99f88e25e039416354cf490fe98642af7e (patch) | |
tree | 40f8b0cc061e3ec55539e30754df3e3d1c17dd80 /source/Mobs/Monster.cpp | |
parent | Added Bats and Witches. (diff) | |
download | cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.tar cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.tar.gz cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.tar.bz2 cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.tar.lz cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.tar.xz cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.tar.zst cuberite-4cebaa99f88e25e039416354cf490fe98642af7e.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Mobs/Monster.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Mobs/Monster.cpp b/source/Mobs/Monster.cpp index 6a5a2d667..82d69df57 100644 --- a/source/Mobs/Monster.cpp +++ b/source/Mobs/Monster.cpp @@ -217,12 +217,12 @@ void cMonster::ReplicateMovement() float SqrDist = DiffX * DiffX + DiffY * DiffY + DiffZ * DiffZ; if ( (SqrDist > 4 * 4) // 4 blocks is max Relative Move - || (cWorld::GetTime() - m_TimeLastTeleportPacket > 2) // Send an absolute position every 2 seconds + || (m_World->GetWorldAge() - m_TimeLastTeleportPacket > 40) // Send an absolute position every 2 seconds ) { // LOGD("Teleported %f", sqrtf(SqrDist) ); m_World->BroadcastTeleportEntity(*this); - m_TimeLastTeleportPacket = cWorld::GetTime(); + m_TimeLastTeleportPacket = m_World->GetWorldAge(); } else { |