mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Duke: Move displayhandremote()
lambda to new weapon offsets.
This commit is contained in:
parent
c126619d6d
commit
624e28bf55
1 changed files with 2 additions and 8 deletions
|
@ -741,14 +741,8 @@ void displayweapon_d(int snum, double interpfrac)
|
||||||
|
|
||||||
auto displayhandremote = [&]()
|
auto displayhandremote = [&]()
|
||||||
{
|
{
|
||||||
int8_t remote_frames[] = { 0,1,1,2,1,1,0,0,0,0,0 };
|
static constexpr uint8_t remote_frames[] = { 0,1,1,2,1,1,0,0,0,0,0 };
|
||||||
|
hud_drawpal(102 + offsets.X, 258 + offsets.Y, HANDREMOTE + (*kb ? remote_frames[*kb] : 0), shade, o, pal, angle);
|
||||||
weapon_xoffset = -48;
|
|
||||||
|
|
||||||
if (*kb)
|
|
||||||
hud_drawpal(weapon_xoffset + 150 - look_anghalf, looking_arc + 258 - gun_pos, HANDREMOTE + remote_frames[*kb], shade, o, pal);
|
|
||||||
else
|
|
||||||
hud_drawpal(weapon_xoffset + 150 - look_anghalf, looking_arc + 258 - gun_pos, HANDREMOTE, shade, o, pal);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue