mirror of
https://github.com/ENSL/NS.git
synced 2024-11-10 07:11:38 +00:00
optimization to first person spec viewmodel loading
This commit is contained in:
parent
b5177e8e47
commit
710518f55a
1 changed files with 2 additions and 0 deletions
|
@ -1801,6 +1801,7 @@ int V_FindViewModelByWeaponModel(int weaponindex, int inUser3, int inUser4)
|
|||
if ( !SafeStrcmp( weaponModel->name, theCurrentPWeapon) )
|
||||
{
|
||||
theViewModelIndex = gEngfuncs.pEventAPI->EV_FindModelIndex( theCurrentVWeapon );
|
||||
return theViewModelIndex;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
@ -1815,6 +1816,7 @@ int V_FindViewModelByWeaponModel(int weaponindex, int inUser3, int inUser4)
|
|||
if ( !SafeStrcmp( weaponModel->name, theCurrentPWeapon) )
|
||||
{
|
||||
theViewModelIndex = gEngfuncs.pEventAPI->EV_FindModelIndex( theCurrentVWeapon );
|
||||
return theViewModelIndex;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue