More EDUKE32_STANDALONE guards

git-svn-id: https://svn.eduke32.com/eduke32@6802 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-04-04 20:48:05 +00:00
parent dac6d70af6
commit 5214bc68dc

View file

@ -2070,16 +2070,12 @@ static int P_DisplayAccess(int accessShade)
return 1; return 1;
} }
static int32_t fistPos;
void P_DisplayWeapon(void) void P_DisplayWeapon(void)
{ {
DukePlayer_t *const pPlayer = g_player[screenpeek].ps; DukePlayer_t *const pPlayer = g_player[screenpeek].ps;
const uint8_t *const weaponFrame = &pPlayer->kickback_pic; const uint8_t *const weaponFrame = &pPlayer->kickback_pic;
int currentWeapon; int currentWeapon;
int32_t weaponBits = 0;
#ifdef SPLITSCREEN_MOD_HACKS #ifdef SPLITSCREEN_MOD_HACKS
g_snum = screenpeek; g_snum = screenpeek;
@ -2094,6 +2090,9 @@ void P_DisplayWeapon(void)
int weaponYOffset = 80 - (pPlayer->weapon_pos * pPlayer->weapon_pos); int weaponYOffset = 80 - (pPlayer->weapon_pos * pPlayer->weapon_pos);
int weaponShade = sprite[pPlayer->i].shade <= 24 ? sprite[pPlayer->i].shade : 24; int weaponShade = sprite[pPlayer->i].shade <= 24 ? sprite[pPlayer->i].shade : 24;
int32_t weaponBits = 0;
UNREFERENCED_PARAMETER(weaponBits);
if (P_DisplayFist(weaponShade) || P_DisplayKnuckles(weaponShade) || P_DisplayTip(weaponShade) || P_DisplayAccess(weaponShade)) if (P_DisplayFist(weaponShade) || P_DisplayKnuckles(weaponShade) || P_DisplayTip(weaponShade) || P_DisplayAccess(weaponShade))
goto enddisplayweapon; goto enddisplayweapon;
@ -2122,6 +2121,7 @@ void P_DisplayWeapon(void)
if (VM_OnEvent(EVENT_DISPLAYWEAPON, pPlayer->i, screenpeek) == 0) if (VM_OnEvent(EVENT_DISPLAYWEAPON, pPlayer->i, screenpeek) == 0)
{ {
#ifndef EDUKE32_STANDALONE
int const quickKickFrame = 14 - pPlayer->quick_kick; int const quickKickFrame = 14 - pPlayer->quick_kick;
if ((quickKickFrame != 14 || pPlayer->last_quick_kick) && ud.drawweapon == 1) if ((quickKickFrame != 14 || pPlayer->last_quick_kick) && ud.drawweapon == 1)
@ -2144,6 +2144,8 @@ void P_DisplayWeapon(void)
if (sprite[pPlayer->i].xrepeat < 40) if (sprite[pPlayer->i].xrepeat < 40)
{ {
static int32_t fistPos;
int const weaponPal = P_GetHudPal(pPlayer); int const weaponPal = P_GetHudPal(pPlayer);
if (pPlayer->jetpack_on == 0) if (pPlayer->jetpack_on == 0)
@ -2162,6 +2164,7 @@ void P_DisplayWeapon(void)
weaponShade, weaponBits | 4, weaponPal); weaponShade, weaponBits | 4, weaponPal);
} }
else else
#endif
{ {
switch (ud.drawweapon) switch (ud.drawweapon)
{ {
@ -2177,6 +2180,7 @@ void P_DisplayWeapon(void)
if (VM_OnEvent(EVENT_DRAWWEAPON, g_player[screenpeek].ps->i, screenpeek)||(currentWeapon == KNEE_WEAPON && *weaponFrame == 0)) if (VM_OnEvent(EVENT_DRAWWEAPON, g_player[screenpeek].ps->i, screenpeek)||(currentWeapon == KNEE_WEAPON && *weaponFrame == 0))
goto enddisplayweapon; goto enddisplayweapon;
#ifndef EDUKE32_STANDALONE
int const doAnim = !(sprite[pPlayer->i].pal == 1 || ud.pause_on || g_player[myconnectindex].ps->gm & MODE_MENU); int const doAnim = !(sprite[pPlayer->i].pal == 1 || ud.pause_on || g_player[myconnectindex].ps->gm & MODE_MENU);
int const halfLookAng = pPlayer->look_ang >> 1; int const halfLookAng = pPlayer->look_ang >> 1;
@ -2798,6 +2802,7 @@ void P_DisplayWeapon(void)
} }
break; break;
} }
#endif
} }
} }