- Exhumed: Fixed a few missed constants when changing horizon to 100.

This commit is contained in:
Mitchell Richters 2020-09-21 19:59:20 +10:00
parent fa1ce1c021
commit 5324d9680b

View file

@ -739,7 +739,7 @@ loc_flag:
// loc_27266: // loc_27266:
case kWeaponSword: case kWeaponSword:
{ {
nHeight += (92 - FixedToInt(sPlayerInput[nPlayer].horizon)) << 6; nHeight += (100 - FixedToInt(sPlayerInput[nPlayer].horizon)) << 6;
theZ += nHeight; theZ += nHeight;
@ -844,7 +844,7 @@ loc_flag:
} }
case kWeaponPistol: case kWeaponPistol:
{ {
int var_50 = (FixedToInt(sPlayerInput[nPlayer].horizon) - 92) << 2; int var_50 = (FixedToInt(sPlayerInput[nPlayer].horizon) - 100) << 2;
nHeight -= var_50; nHeight -= var_50;
if (sPlayerInput[nPlayer].nTarget >= 0 && cl_autoaim) if (sPlayerInput[nPlayer].nTarget >= 0 && cl_autoaim)
@ -859,7 +859,7 @@ loc_flag:
case kWeaponGrenade: case kWeaponGrenade:
{ {
ThrowGrenade(nPlayer, ebp, ebx, nHeight - 2560, FixedToInt(sPlayerInput[nPlayer].horizon) - 92); ThrowGrenade(nPlayer, ebp, ebx, nHeight - 2560, FixedToInt(sPlayerInput[nPlayer].horizon) - 100);
break; break;
} }
case kWeaponStaff: case kWeaponStaff: