- Duke: Invert the horizon offset in displayweapon_d() as it makes more sense.

This commit is contained in:
Mitchell Richters 2022-10-21 23:16:56 +11:00 committed by Christoph Oelckers
parent a5e6e80c24
commit 2d2f628b95

View file

@ -230,7 +230,7 @@ void displayweapon_d(int snum, double interpfrac)
auto offsets = p->angle.weaponoffsets(interpfrac);
auto horiz = !SyncInput() ? p->horizon.sum() : p->horizon.interpolatedsum(interpfrac);
auto pitchoffset = interpolatedvalue(0., 16., horiz / DAngle90);
auto pitchoffset = -interpolatedvalue(0., 16., horiz / DAngle90);
auto yawinput = getavel(snum) * (1. / 16.);
auto angle = p->angle.renderrotscrn(interpfrac);
auto weapon_xoffset = 160 - 90 - (BobVal(512 + weapon_sway * 0.5) * (16384. / 1536.)) - 58 - p->weapon_ang;