Skip to content

Commit

Permalink
allow deathmatch game modes to be changed via server operator console
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Jan 13, 2024
1 parent 90bac67 commit 0ec41ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/server/swarm/asw_concommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ ConCommand rd_givemeweapon( "rd_givemeweapon", rd_givemeweaponf, "Gives a specif
static bool isLeader()
{
CASW_Player *pPlayer = ToASW_Player(UTIL_GetCommandClient());
if (!pPlayer || !ASWGameResource())
return false;
if ( !pPlayer || !ASWGameResource() )
return true; // issued by console?

if (ASWGameResource()->GetLeader() != pPlayer)
if ( ASWGameResource()->GetLeader() != pPlayer )
return false;

return true;
Expand Down

0 comments on commit 0ec41ee

Please sign in to comment.