fix: Removed hardcoded max xpScale.
parent
b1e0774bb8
commit
a68bc96db9
|
@ -7,12 +7,6 @@ init()
|
||||||
{
|
{
|
||||||
level.scoreInfo = [];
|
level.scoreInfo = [];
|
||||||
level.xpScale = getDvarInt( "scr_xpscale" );
|
level.xpScale = getDvarInt( "scr_xpscale" );
|
||||||
|
|
||||||
if ( level.xpScale > 4 || level.xpScale < 0)
|
|
||||||
exitLevel( false );
|
|
||||||
|
|
||||||
level.xpScale = min( level.xpScale, 4 );
|
|
||||||
level.xpScale = max( level.xpScale, 0 );
|
|
||||||
|
|
||||||
level.rankTable = [];
|
level.rankTable = [];
|
||||||
|
|
||||||
|
@ -760,4 +754,4 @@ syncXPStat()
|
||||||
xp = self getRankXP();
|
xp = self getRankXP();
|
||||||
|
|
||||||
self maps\mp\gametypes\_persistence::statSet( "experience", xp );
|
self maps\mp\gametypes\_persistence::statSet( "experience", xp );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue