mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +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;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue