validate game interface commands to ensure it's enabled before trying to execute

This commit is contained in:
RaidMax
2022-02-18 10:15:11 -06:00
parent 45059fcfd9
commit 2e531c4a50
2 changed files with 43 additions and 4 deletions

View File

@ -578,7 +578,7 @@ HideImpl()
return;
}
if ( self.isHidden )
if ( IsDefined( self.isHidden ) && self.isHidden )
{
self IPrintLnBold( "You are already hidden" );
return;
@ -682,7 +682,7 @@ NightModeImpl()
foreach( player in level.players )
{
self ToggleNightMode();
player ToggleNightMode();
}
}