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

This commit is contained in:
Mitchell Richters 2022-12-11 11:22:28 +11:00 committed by Christoph Oelckers
parent 387e0286ac
commit 70d7210462

View file

@ -702,9 +702,10 @@ void displayweapon_r(int snum, double interpfrac)
auto displaydynamite = [&]
{
gun_pos -= 9 * (*kb);
offsets.X += weapon_xoffset;
offsets.Y -= gun_pos - 9 * (*kb);
rdmyospal(weapon_xoffset + 190 - look_anghalf, looking_arc + 260 - gun_pos, RTILE_HANDTHROW, shade, o, pal);
rdmyospal(190 + offsets.X, 260 + offsets.Y, RTILE_HANDTHROW, shade, o, pal, angle);
};
//---------------------------------------------------------------------------