- eliminated the last place where tspritetype’s add_int_z was used

This commit is contained in:
Christoph Oelckers 2022-09-16 18:22:16 +02:00
parent 25bc068032
commit fb2c4efa2f
2 changed files with 2 additions and 7 deletions

View file

@ -516,11 +516,6 @@ struct tspritetype : public spritetypebase
{ {
DCoreActor* ownerActor; DCoreActor* ownerActor;
int time; int time;
void add_int_z(int x)
{
pos.Z += x * zinttoworld;
}
}; };
class tspriteArray class tspriteArray

View file

@ -390,7 +390,7 @@ static tspritetype* viewAddEffect(tspriteArray& tsprites, int nTSprite, VIEW_EFF
pNSprite->pal = 5; pNSprite->pal = 5;
int height = tileHeight(pNSprite->picnum); int height = tileHeight(pNSprite->picnum);
int center = height / 2 + tileTopOffset(pNSprite->picnum); int center = height / 2 + tileTopOffset(pNSprite->picnum);
pNSprite->add_int_z(-(pNSprite->yrepeat << 2) * (height - center)); pNSprite->pos.Z -= (pNSprite->yrepeat * REPEAT_SCALE) * (height - center);
break; break;
} }
case kViewEffectFlareHalo: case kViewEffectFlareHalo: