mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-28 14:11:06 +00:00
- eliminated the last place where tspritetype’s add_int_z was used
This commit is contained in:
parent
25bc068032
commit
fb2c4efa2f
2 changed files with 2 additions and 7 deletions
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue