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
This commit is contained in:
ny00123 2020-03-07 13:51:46 +00:00 committed by Christoph Oelckers
parent 9c7553c776
commit f9155048fc

View file

@ -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);
}