diff --git a/saco/game/aimstuff.cpp b/saco/game/aimstuff.cpp index 522ccc1..c28096e 100644 --- a/saco/game/aimstuff.cpp +++ b/saco/game/aimstuff.cpp @@ -158,10 +158,10 @@ CAMERA_AIM * __stdcall GameGetRemotePlayerAim(int iPlayer) //---------------------------------------------------------- -void __stdcall GameSetPlayerWeaponSkillLevel(int iPlayer, int iSkill, float fLevel) +void __stdcall GameSetPlayerWeaponSkillLevel(int iPlayer, int iSkill, WORD wLevel) { if(iSkill < 11 && iPlayer < PLAYER_PED_SLOTS) { - fWeaponSkill[iPlayer][iSkill] = fLevel; + fWeaponSkill[iPlayer][iSkill] = (float)wLevel; } } diff --git a/saco/game/aimstuff.h b/saco/game/aimstuff.h index 6e7908c..9022242 100644 --- a/saco/game/aimstuff.h +++ b/saco/game/aimstuff.h @@ -29,8 +29,8 @@ void __stdcall GameSetRemotePlayerCameraExtZoom(BYTE bytePlayerID); float __stdcall GameGetLocalPlayerCameraExtZoom(); float __stdcall GameGetLocalPlayerAspectRatio(); -void __stdcall GameSetPlayerWeaponSkillLevel(int iPlayer, int iSkill, float fLevel); void __stdcall GameSetLocalPlayerWeaponSkillLevel(int iSkill, float fLevel); +void __stdcall GameSetPlayerWeaponSkillLevel(int iPlayer, int iSkill, WORD wLevel); void __stdcall GameStoreLocalPlayerWeaponSkills(); void __stdcall GameSetLocalPlayerWeaponSkills(); void __stdcall GameResetLocalPlayerWeaponSkills();