optimization to first person spec viewmodel loading

This commit is contained in:
pierow 2024-05-04 04:52:53 -04:00
parent b5177e8e47
commit 710518f55a

View file

@ -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++;
}