1
0

Better player gamemode detection

This commit is contained in:
Tiger Wang 2013-09-11 18:50:14 +01:00
parent 37e0e684f4
commit e9321bc715

View File

@ -613,7 +613,7 @@ void cPlayer::DoTakeDamage(TakeDamageInfo & a_TDI)
{ {
if (a_TDI.DamageType != dtInVoid) if (a_TDI.DamageType != dtInVoid)
{ {
if (m_GameMode == eGameMode_Creative) if (IsGameModeCreative())
{ {
// No damage / health in creative mode // No damage / health in creative mode
return; return;