1
0
- Attack() is now called from cAggressive instead of cMonster
* Monsters can no longer attack through walls
* Should fix last remnants of player damage after teleporting (that both
STR and bearbin contributed fixes to :P)
This commit is contained in:
Tiger Wang
2014-02-11 22:09:56 +00:00
parent c53406f0d4
commit 06239c8336
5 changed files with 12 additions and 21 deletions

View File

@@ -1122,8 +1122,8 @@ void cPlayer::SetIP(const AString & a_IP)
void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
{
SetPosition( a_PosX, a_PosY, a_PosZ );
m_LastGroundHeight = (float)a_PosY;
SetPosition(a_PosX, a_PosY, a_PosZ);
m_LastGroundHeight, m_LastJumpHeight = (float)a_PosY;
m_World->BroadcastTeleportEntity(*this, GetClientHandle());
m_ClientHandle->SendPlayerMoveLook();