From f9155048fcd4dbb080225afcbc23a39c522fae34 Mon Sep 17 00:00:00 2001 From: ny00123 Date: Sat, 7 Mar 2020 13:51:46 +0000 Subject: [PATCH] sw/src/weapon.cpp: Remove conditional set of unused variable hsp in InitMineShrap, as well as unused variable sp in TestDontStick git-svn-id: https://svn.eduke32.com/eduke32@8693 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/sw/src/weapon.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/source/sw/src/weapon.cpp b/source/sw/src/weapon.cpp index b2d0cf227..454b15777 100644 --- a/source/sw/src/weapon.cpp +++ b/source/sw/src/weapon.cpp @@ -11719,7 +11719,7 @@ int InitMineShrap(short SpriteNum) { SPRITEp sp = &sprite[SpriteNum]; - SPRITEp wp, hsp; + SPRITEp wp; short ang, w, i; hitdata_t hitinfo; int daz; @@ -11749,12 +11749,6 @@ InitMineShrap(short SpriteNum) if (Distance(hitinfo.pos.x, hitinfo.pos.y, sp->x, sp->y) > MINE_SHRAP_DIST_MAX) continue; - // hit a sprite? - if (hitinfo.sprite >= 0) - { - hsp = &sprite[hitinfo.sprite]; - } - w = SpawnSprite(STAT_MISSILE, MINE_SHRAP, s_MineSpark, hitinfo.sect, hitinfo.pos.x, hitinfo.pos.y, hitinfo.pos.z, ang, 0); wp = &sprite[w]; wp->shade = -40; @@ -20516,7 +20510,6 @@ SWBOOL TestDontStick(short SpriteNum, short hit_sect, short hit_wall, int hit_z) if (hit_wall < 0) { ASSERT(SpriteNum>=0); - SPRITEp sp = &sprite[SpriteNum]; USERp u = User[SpriteNum]; hit_wall = NORM_WALL(u->ret); }