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 (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;
|
||||||
|
Loading…
Reference in New Issue
Block a user