Skip to content

Commit

Permalink
Fix co-op mode logic not working
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Oct 25, 2024
1 parent bd9d567 commit 733852b
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 != 0)
return (allowmonsters.value != 0);
else
return (coopmode.value != 0);
}

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

0 comments on commit 733852b

Please sign in to comment.