Disable Duke3D-specific r_drawweapon behavior in standalone builds

git-svn-id: https://svn.eduke32.com/eduke32@7453 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-03-30 19:35:39 +00:00 committed by Christoph Oelckers
parent c8bd436cf8
commit 940822c776

View file

@ -2214,11 +2214,13 @@ void P_DisplayWeapon(void)
switch (ud.drawweapon) switch (ud.drawweapon)
{ {
case 1: break; case 1: break;
#ifndef EDUKE32_STANDALONE
case 2: case 2:
if ((unsigned)hudweap.cur < MAX_WEAPONS && hudweap.cur != KNEE_WEAPON) if ((unsigned)hudweap.cur < MAX_WEAPONS && hudweap.cur != KNEE_WEAPON)
rotatesprite_win(160 << 16, (180 + (pPlayer->weapon_pos * pPlayer->weapon_pos)) << 16, divscale16(ud.statusbarscale, 100), 0, rotatesprite_win(160 << 16, (180 + (pPlayer->weapon_pos * pPlayer->weapon_pos)) << 16, divscale16(ud.statusbarscale, 100), 0,
hudweap.cur == GROW_WEAPON ? GROWSPRITEICON : WeaponPickupSprites[hudweap.cur], 0, hudweap.cur == GROW_WEAPON ? GROWSPRITEICON : WeaponPickupSprites[hudweap.cur], 0,
0, 2); 0, 2);
#endif
default: goto enddisplayweapon; default: goto enddisplayweapon;
} }