Added helper functions AddSpeed, AddSpeedX, AddSpeedY, AddSpeedZ, AddPosition, AddPosX, AddPosY, AddPosZ. Made sure that all entites use these helper functions.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1299 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -142,7 +142,11 @@ void cMonster::Tick(float a_Dt, MTRand & a_TickRandom)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
HandlePhysics(a_Dt);
|
||||
BroadcastMovementUpdate();
|
||||
MoveToCorrectChunk();
|
||||
|
||||
Vector3d Distance = m_Destination - GetPosition();
|
||||
if (Distance.SqrLength() > 0.1f)
|
||||
{
|
||||
@@ -153,10 +157,6 @@ void cMonster::Tick(float a_Dt, MTRand & a_TickRandom)
|
||||
SetPitch( Pitch );
|
||||
}
|
||||
|
||||
HandlePhysics(a_Dt);
|
||||
BroadcastMovementUpdate();
|
||||
MoveToCorrectChunk();
|
||||
|
||||
switch (m_EMState)
|
||||
{
|
||||
case IDLE:
|
||||
|
||||
Reference in New Issue
Block a user