- fixed warnings

This commit is contained in:
Christoph Oelckers 2022-09-13 21:14:29 +02:00
parent 9deb1dfa69
commit a226a847bd
3 changed files with 1 additions and 3 deletions

View file

@ -266,7 +266,6 @@ void hitradius_d(DDukeActor* actor, int r, int hp1, int hp2, int hp3, int h
{
BFSSectorSearch search(actor->sector());
double radius = r * inttoworld;
while (auto dasectp = search.GetNext())
{
if ((dasectp->ceilingz- actor->spr.pos.Z) < radius * 16) // what value range is this supposed to be? The check that was here did not multiply correctly

View file

@ -224,7 +224,6 @@ void hitradius_r(DDukeActor* actor, int r, int hp1, int hp2, int hp3, int h
{
BFSSectorSearch search(actor->sector());
double radius = r * inttoworld;
while (auto dasectp = search.GetNext())
{
if ((dasectp->ceilingz- actor->spr.pos.Z) < radius * 16) // what value range is this supposed to be? The check that was here did not multiply correctly

View file

@ -564,7 +564,7 @@ static void shootstuff(DDukeActor* actor, int p, int sx, int sy, int sz, int sa,
{
sectortype* sect = actor->sector();
int vel, zvel;
int l, scount;
int scount;
if (actor->spr.extra >= 0) actor->spr.shade = -96;