use table

This commit is contained in:
ineed bots 2023-12-16 13:15:38 -06:00
parent 85f5d42367
commit ce58768516

View File

@ -629,18 +629,32 @@ getValidTube()
iw5 iw5
*/ */
allowClassChoiceUtil() allowClassChoiceUtil()
{
allowed = int( tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 4 ) );
if ( !isDefined( allowed ) )
{ {
return true; return true;
} }
return allowed;
}
/* /*
iw5 iw5
*/ */
allowTeamChoiceUtil() allowTeamChoiceUtil()
{
allowed = int( tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 5 ) );
if ( !isDefined( allowed ) )
{ {
return true; return true;
} }
return allowed;
}
/* /*
helper helper
*/ */