mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2026-10-17 23:53:25 +00:00
use table
This commit is contained in:
1 parent
85f5d42367
commit
ce58768516
1 file changed
+16
-2
@@ -630,7 +630,14 @@ getValidTube()
|
||||
*/
|
||||
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()
|
||||
{
|
||||
return true;
|
||||
allowed = int( tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 5 ) );
|
||||
|
||||
if ( !isDefined( allowed ) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return allowed;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user