Better player gamemode detection
This commit is contained in:
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
Block a user