Skip to content

Commit

Permalink
Fix an oopsie + consistency
Browse files Browse the repository at this point in the history
Thanks for reporting @sheo9000
  • Loading branch information
SirPlease authored and fantasylidong committed Jun 26, 2024
1 parent f6dc190 commit 3485b3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/l4d_tank_control_eq.sp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public Action L4D_OnTryOfferingTankBot(int tank_index, bool &enterStatis)
strcopy(queuedTankSteamId, sizeof(queuedTankSteamId), sOverrideTank);

// If we don't have a queued tank, choose one
if (!strcmp(queuedTankSteamId, ""))
if (strcmp(queuedTankSteamId, "") == 0)
chooseTank(0);

// Mark the player as having had tank
Expand Down Expand Up @@ -361,7 +361,7 @@ public void TankKilled_Event(Event hEvent, const char[] eName, bool dontBroadcas
Action Tank_Cmd(int client, int args)
{
// Only output if client is in-game and we have a queued tank
if (!IsClientInGame(client) || strcmp(queuedTankSteamId, ""))
if (!IsClientInGame(client) || strcmp(queuedTankSteamId, "") == 0)
return Plugin_Handled;

int tankClientId = getInfectedPlayerBySteamId(queuedTankSteamId);
Expand Down

0 comments on commit 3485b3b

Please sign in to comment.