sw/src/player.cpp: A bit more complicated cases of unused vars

git-svn-id: https://svn.eduke32.com/eduke32@8689 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
ny00123 2020-03-06 15:50:00 +00:00 committed by Christoph Oelckers
parent ed6e9df07c
commit f5df1b5a19

View file

@ -5497,18 +5497,9 @@ void
DoPlayerWade(PLAYERp pp) DoPlayerWade(PLAYERp pp)
{ {
USERp u = User[pp->PlayerSprite]; USERp u = User[pp->PlayerSprite];
int dot;
int wadedir = 0;
DoPlayerFireOutWater(pp); DoPlayerFireOutWater(pp);
dot = DOT_PRODUCT_2D(pp->xvect, pp->yvect, sintable[NORM_ANGLE(pp->pang+512)], sintable[pp->pang]);
if (dot < 0)
wadedir = -2;
else if (dot > 0)
wadedir = 2;
if (DebugOperate) if (DebugOperate)
{ {
if (TEST_SYNC_KEY(pp, SK_OPERATE)) if (TEST_SYNC_KEY(pp, SK_OPERATE))
@ -7057,20 +7048,11 @@ void DoPlayerDeathBounce(PLAYERp pp)
if (pp->lo_sectp && TEST(pp->lo_sectp->extra, SECTFX_SINK)) if (pp->lo_sectp && TEST(pp->lo_sectp->extra, SECTFX_SINK))
{ {
int loz;
RESET(sp->cstat, CSTAT_SPRITE_BLOCK|CSTAT_SPRITE_BLOCK_HITSCAN); RESET(sp->cstat, CSTAT_SPRITE_BLOCK|CSTAT_SPRITE_BLOCK_HITSCAN);
NewStateGroup(pp->PlayerSprite, sg_PlayerHead); NewStateGroup(pp->PlayerSprite, sg_PlayerHead);
u->slide_vel = 0; u->slide_vel = 0;
SET(u->Flags, SPR_BOUNCE); SET(u->Flags, SPR_BOUNCE);
if (pp->lo_sectp && TEST(pp->lo_sectp->extra, SECTFX_SINK))
{
loz = pp->lo_sectp->floorz - Z(SectUser[pp->lo_sectp - sector]->depth);
}
else
loz = pp->loz;
return; return;
} }