- Duke (RR): Move displaytits() lambda to new weapon offsets.

This commit is contained in:
Mitchell Richters 2022-12-11 10:39:30 +11:00 committed by Christoph Oelckers
parent 717955d5ab
commit 21fe395c2e

View file

@ -754,13 +754,17 @@ void displayweapon_r(int snum, double interpfrac)
auto displaytits = [&]
{
offsets.X += weapon_xoffset * 0.5;
offsets.Y *= 0.5;
offsets.Y -= gun_pos;
if (*kb)
{
shade = 0;
rd3myospal(150 + (weapon_xoffset / 2.) - look_anghalf, 266 + (looking_arc / 2.) - gun_pos, RTILE_DEVISTATOR, shade, o, pal);
rd3myospal(150 + offsets.X, 266 + offsets.Y, RTILE_DEVISTATOR, shade, o, pal, angle);
}
else
rd3myospal(150 + (weapon_xoffset / 2.) - look_anghalf, 266 + (looking_arc / 2.) - gun_pos, RTILE_DEVISTATOR + 1, shade, o, pal);
rd3myospal(150 + offsets.X, 266 + offsets.Y, RTILE_DEVISTATOR + 1, shade, o, pal, angle);
};
//---------------------------------------------------------------------------