mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
use table
This commit is contained in:
parent
85f5d42367
commit
ce58768516
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user