mirror of
https://github.com/ZDoom/Raze.git
synced 2025-04-25 01:01:02 +00:00
- Duke (RR): Move displaytits()
lambda to new weapon offsets.
This commit is contained in:
parent
717955d5ab
commit
21fe395c2e
1 changed files with 6 additions and 2 deletions
|
@ -754,13 +754,17 @@ void displayweapon_r(int snum, double interpfrac)
|
||||||
|
|
||||||
auto displaytits = [&]
|
auto displaytits = [&]
|
||||||
{
|
{
|
||||||
|
offsets.X += weapon_xoffset * 0.5;
|
||||||
|
offsets.Y *= 0.5;
|
||||||
|
offsets.Y -= gun_pos;
|
||||||
|
|
||||||
if (*kb)
|
if (*kb)
|
||||||
{
|
{
|
||||||
shade = 0;
|
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
|
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);
|
||||||
};
|
};
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue