mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 15:40:58 +00:00
- Duke (RR): Move displaybowlingball()
lambda to new weapon offsets.
This commit is contained in:
parent
6193d17dac
commit
40ec46e323
1 changed files with 5 additions and 6 deletions
|
@ -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);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue