Display the firsts-when-shrunk hud-weaponscaled, tweak for fake multi.

git-svn-id: https://svn.eduke32.com/eduke32@2934 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-08-19 13:01:30 +00:00
parent 1ac7dd16be
commit 5e6642df2a

View file

@ -2420,21 +2420,24 @@ void P_DisplayWeapon(int32_t snum)
if (sprite[p->i].xrepeat < 40) if (sprite[p->i].xrepeat < 40)
{ {
pal = get_hud_pal(p);
if (p->jetpack_on == 0) if (p->jetpack_on == 0)
{ {
i = sprite[p->i].xvel; i = sprite[p->i].xvel;
looking_arc += 32-(i>>1); looking_arc += 32-(i>>1);
fistsign += i>>1; fistsign += i>>1;
} }
cw = weapon_xoffset; cw = weapon_xoffset;
weapon_xoffset += sintable[(fistsign)&2047]>>10; weapon_xoffset += sintable[(fistsign)&2047]>>10;
G_DrawTile(weapon_xoffset+250-(p->look_ang>>1), G_DrawTileScaled(weapon_xoffset+250-(p->look_ang>>1),
looking_arc+258-(klabs(sintable[(fistsign)&2047]>>8)), looking_arc+258-(klabs(sintable[(fistsign)&2047]>>8)),
FIST,gs,o); FIST,gs,o, pal);
weapon_xoffset = cw - (sintable[(fistsign)&2047]>>10); weapon_xoffset = cw - (sintable[(fistsign)&2047]>>10);
G_DrawTile(weapon_xoffset+40-(p->look_ang>>1), G_DrawTileScaled(weapon_xoffset+40-(p->look_ang>>1),
looking_arc+200+(klabs(sintable[(fistsign)&2047]>>8)), looking_arc+200+(klabs(sintable[(fistsign)&2047]>>8)),
FIST,gs,o|4); FIST,gs,o|4, pal);
} }
else else
{ {