From 3485b3b52d12a7575de3f3d31d362ec304ac2bc8 Mon Sep 17 00:00:00 2001 From: SirPlease Date: Fri, 21 Jun 2024 12:49:31 +0200 Subject: [PATCH] Fix an oopsie + consistency Thanks for reporting @sheo9000 --- addons/sourcemod/scripting/l4d_tank_control_eq.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sourcemod/scripting/l4d_tank_control_eq.sp b/addons/sourcemod/scripting/l4d_tank_control_eq.sp index 65aa350d9..d2caf9070 100644 --- a/addons/sourcemod/scripting/l4d_tank_control_eq.sp +++ b/addons/sourcemod/scripting/l4d_tank_control_eq.sp @@ -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 @@ -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);