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

This commit is contained in:
Mitchell Richters 2022-12-11 10:55:30 +11:00 committed by Christoph Oelckers
parent 6193d17dac
commit 40ec46e323

View file

@ -352,17 +352,16 @@ void displayweapon_r(int snum, double interpfrac)
auto displaybowlingball = [&] auto displaybowlingball = [&]
{ {
weapon_xoffset += 8; offsets.X += weapon_xoffset + 8;
gun_pos -= 10; offsets.Y -= gun_pos - 10;
if (p->ammo_amount[BOWLING_WEAPON]) if (p->ammo_amount[BOWLING_WEAPON])
{ {
hud_drawpal(weapon_xoffset + 162 - look_anghalf, hud_drawpal(162 + offsets.X, 214 + offsets.Y + (*kb << 3), RTILE_BOWLINGBALLHUD, shade, o, pal, angle);
looking_arc + 214 - gun_pos + (*kb << 3), RTILE_BOWLINGBALLHUD, shade, o, pal);
} }
else else
{ {
rdmyospal(weapon_xoffset + 162 - look_anghalf, rdmyospal(162 + offsets.X, 214 + offsets.Y, RTILE_HANDTHROW + 5, shade, o, pal, angle);
looking_arc + 214 - gun_pos, RTILE_HANDTHROW + 5, shade, o, pal);
} }
}; };