Clarified some code in Player.cpp
This commit is contained in:
parent
d8221854d2
commit
9c796bf6b4
@ -987,8 +987,11 @@ void cPlayer::SetGameMode(eGameMode a_GameMode)
|
|||||||
m_GameMode = a_GameMode;
|
m_GameMode = a_GameMode;
|
||||||
m_ClientHandle->SendGameMode(a_GameMode);
|
m_ClientHandle->SendGameMode(a_GameMode);
|
||||||
|
|
||||||
SetFlying(false);
|
if (a_GameMode != gmCreative)
|
||||||
SetCanFly(false);
|
{
|
||||||
|
SetFlying(false);
|
||||||
|
SetCanFly(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user