1
0

Clarified some code in Player.cpp

This commit is contained in:
Tiger Wang 2013-12-23 09:51:41 +00:00
parent d8221854d2
commit 9c796bf6b4

View File

@ -987,8 +987,11 @@ void cPlayer::SetGameMode(eGameMode a_GameMode)
m_GameMode = a_GameMode;
m_ClientHandle->SendGameMode(a_GameMode);
SetFlying(false);
SetCanFly(false);
if (a_GameMode != gmCreative)
{
SetFlying(false);
SetCanFly(false);
}
}