Used IsGamemodeCreative() function

master
Tiger Wang 2013-12-24 23:47:04 +00:00
parent ae6cb01e56
commit 508e505ace
1 changed files with 1 additions and 1 deletions

View File

@ -984,7 +984,7 @@ void cPlayer::SetGameMode(eGameMode a_GameMode)
m_GameMode = a_GameMode;
m_ClientHandle->SendGameMode(a_GameMode);
if (a_GameMode != gmCreative)
if (!IsGameModeCreative())
{
SetFlying(false);
SetCanFly(false);