Better player gamemode detection

master
Tiger Wang 2013-09-11 18:50:14 +01:00
parent 37e0e684f4
commit e9321bc715
1 changed files with 1 additions and 1 deletions

View File

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