Skip to content

Commit

Permalink
Fix co-op mode logic (once again)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Oct 25, 2024
1 parent a25ef4d commit 9976a08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions binary/dlls/multiplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1292,8 +1292,10 @@ BOOL CHalfLifeMultiplay :: FAllowFlashlight( void )
BOOL CHalfLifeMultiplay :: FAllowMonsters( void )
{
extern cvar_t coopmode;
return (coopmode.value != 0);
return ( allowmonsters.value != 0 );
if (coopmode.value >= 1)
return TRUE;
else
return ( allowmonsters.value != 0 );
}

//=========================================================
Expand Down

0 comments on commit 9976a08

Please sign in to comment.