mirror of https://github.com/UberGames/rpgxEF.git
parent
d08f91e6ae
commit
c6fbc2146e
|
@ -768,16 +768,13 @@ static qboolean G_LoadClassData( char* fileName )
|
||||||
|
|
||||||
if( Q_stricmpn( token, "WP_", 3 ) == 0 )
|
if( Q_stricmpn( token, "WP_", 3 ) == 0 )
|
||||||
{
|
{
|
||||||
weapon = GetIDForString( WeaponTable, token );
|
int t = GetIDForString( WeaponTable, token );
|
||||||
|
|
||||||
if ( weapon > 0 ) {
|
if ( t >= 0 ) {
|
||||||
|
weapon = (unsigned)t;
|
||||||
g_classData[classIndex].weaponsFlags |= ( 1 << weapon );
|
g_classData[classIndex].weaponsFlags |= ( 1 << weapon );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ( weapon == 0) {
|
|
||||||
g_classData[classIndex].weaponsFlags |= 1;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue