From 1d3adfd9c347575f641ce3b3bf6676ff81d98ac2 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Wed, 20 Dec 2023 15:08:04 -0600 Subject: [PATCH] fix --- maps/mp/bots/_bot_utility.gsc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/maps/mp/bots/_bot_utility.gsc b/maps/mp/bots/_bot_utility.gsc index b1ccea4..c4b2538 100644 --- a/maps/mp/bots/_bot_utility.gsc +++ b/maps/mp/bots/_bot_utility.gsc @@ -630,14 +630,14 @@ getValidTube() */ allowClassChoiceUtil() { - allowed = int( tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 4 ) ); + entry = tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 4 ); - if ( !isDefined( allowed ) ) + if ( !isDefined( entry ) || entry == "" ) { return true; } - return allowed; + return int( entry ); } /* @@ -645,14 +645,14 @@ allowClassChoiceUtil() */ allowTeamChoiceUtil() { - allowed = int( tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 5 ) ); + entry = tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 5 ); - if ( !isDefined( allowed ) ) + if ( !isDefined( entry ) || entry == "" ) { return true; } - return allowed; + return int( entry ); } /*