mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 23:29:12 +00:00
Fix error when not using matchrules
This commit is contained in:
parent
74d3e6877a
commit
93e141be17
@ -1230,7 +1230,7 @@ chooseRandomClass( )
|
|||||||
class = "";
|
class = "";
|
||||||
rank = self maps\mp\gametypes\_rank::getRankForXp( self getPlayerData( "experience" ) ) + 1;
|
rank = self maps\mp\gametypes\_rank::getRankForXp( self getPlayerData( "experience" ) ) + 1;
|
||||||
|
|
||||||
if ( rank < 4 || ( randomInt( 100 ) < 2 && !reasonable ) || !level.matchRules_allowCustomClasses )
|
if ( rank < 4 || ( randomInt( 100 ) < 2 && !reasonable ) || ( isUsingMatchRulesData() && !level.matchRules_allowCustomClasses ) )
|
||||||
{
|
{
|
||||||
while ( class == "" )
|
while ( class == "" )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user