Better player gamemode detection
parent
37e0e684f4
commit
e9321bc715
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue