mirror of
https://github.com/UberGames/rpgxEF.git
synced 2024-11-10 15:21:34 +00:00
fix
last warning count game: 9845
This commit is contained in:
parent
d08f91e6ae
commit
c6fbc2146e
1 changed files with 3 additions and 6 deletions
|
@ -768,16 +768,13 @@ static qboolean G_LoadClassData( char* fileName )
|
|||
|
||||
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 );
|
||||
continue;
|
||||
}
|
||||
if ( weapon == 0) {
|
||||
g_classData[classIndex].weaponsFlags |= 1;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue