use table

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

View File

@ -630,7 +630,14 @@ getValidTube()
*/ */
allowClassChoiceUtil() allowClassChoiceUtil()
{ {
return true; allowed = int( tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 4 ) );
if ( !isDefined( allowed ) )
{
return true;
}
return allowed;
} }
/* /*
@ -638,7 +645,14 @@ allowClassChoiceUtil()
*/ */
allowTeamChoiceUtil() allowTeamChoiceUtil()
{ {
return true; allowed = int( tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 5 ) );
if ( !isDefined( allowed ) )
{
return true;
}
return allowed;
} }
/* /*