From f5df1b5a196b679cba56a5eee5c4543f808eddf0 Mon Sep 17 00:00:00 2001 From: ny00123 Date: Fri, 6 Mar 2020 15:50:00 +0000 Subject: [PATCH] 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 --- source/sw/src/player.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/source/sw/src/player.cpp b/source/sw/src/player.cpp index 837cdbd15..11d85ba40 100644 --- a/source/sw/src/player.cpp +++ b/source/sw/src/player.cpp @@ -5497,18 +5497,9 @@ void DoPlayerWade(PLAYERp pp) { USERp u = User[pp->PlayerSprite]; - int dot; - int wadedir = 0; 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 (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)) { - int loz; - RESET(sp->cstat, CSTAT_SPRITE_BLOCK|CSTAT_SPRITE_BLOCK_HITSCAN); NewStateGroup(pp->PlayerSprite, sg_PlayerHead); u->slide_vel = 0; 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; }