mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-12 06:50:59 +00:00
- Duke (RR): Move displaycrossbow()
lambda to new weapon offsets.
This commit is contained in:
parent
be439918dc
commit
79ae9e1f97
1 changed files with 7 additions and 6 deletions
|
@ -397,20 +397,21 @@ void displayweapon_r(int snum, double interpfrac)
|
||||||
{
|
{
|
||||||
if (!(gs.displayflags & DUKE3D_NO_WIDESCREEN_PINNING)) pin = RS_ALIGN_R;
|
if (!(gs.displayflags & DUKE3D_NO_WIDESCREEN_PINNING)) pin = RS_ALIGN_R;
|
||||||
static const uint8_t kb_frames[] = { 0,1,1,2,2,3,2,3,2,3,2,2,2,2,2,2,2,2,2,4,4,4,4,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7 };
|
static const uint8_t kb_frames[] = { 0,1,1,2,2,3,2,3,2,3,2,2,2,2,2,2,2,2,2,4,4,4,4,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7 };
|
||||||
|
|
||||||
|
offsets.X += weapon_xoffset;
|
||||||
|
offsets.Y -= gun_pos;
|
||||||
|
|
||||||
if (kb_frames[*kb] == 2 || kb_frames[*kb] == 3)
|
if (kb_frames[*kb] == 2 || kb_frames[*kb] == 3)
|
||||||
{
|
{
|
||||||
rdmyospal((weapon_xoffset + 200) - look_anghalf,
|
rdmyospal(200 + offsets.X, 250 + offsets.Y, RTILE_RPGGUN + kb_frames[*kb], shade, o | pin, pal, angle);
|
||||||
looking_arc + 250 - gun_pos, RTILE_RPGGUN + kb_frames[*kb], shade, o | pin, pal);
|
|
||||||
}
|
}
|
||||||
else if (kb_frames[*kb] == 1)
|
else if (kb_frames[*kb] == 1)
|
||||||
{
|
{
|
||||||
rdmyospal((weapon_xoffset + 200) - look_anghalf,
|
rdmyospal(200 + offsets.X, 250 + offsets.Y, RTILE_RPGGUN + kb_frames[*kb], 0, o | pin, pal, angle);
|
||||||
looking_arc + 250 - gun_pos, RTILE_RPGGUN + kb_frames[*kb], 0, o | pin, pal);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
rdmyospal((weapon_xoffset + 210) - look_anghalf,
|
rdmyospal(210 + offsets.X, 255 + offsets.Y, RTILE_RPGGUN + kb_frames[*kb], shade, o | pin, pal, angle);
|
||||||
looking_arc + 255 - gun_pos, RTILE_RPGGUN + kb_frames[*kb], shade, o | pin, pal);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue