- 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;
int time;
void add_int_z(int x)
{
pos.Z += x * zinttoworld;
}
};
class tspriteArray
@ -737,4 +732,4 @@ void validateStartSector(const char* filename, const DVector3& pos, int* cursect
constexpr DAngle mapangle(int mapang)
{
return DAngle::fromBuild(mapang);
}
}

View file

@ -390,7 +390,7 @@ static tspritetype* viewAddEffect(tspriteArray& tsprites, int nTSprite, VIEW_EFF
pNSprite->pal = 5;
int height = tileHeight(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;
}
case kViewEffectFlareHalo: