mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- the one add_int_floorz/add_int_ceilingz calls each in SW.
This commit is contained in:
parent
f0769048ed
commit
fe42de1fcb
1 changed files with 3 additions and 4 deletions
|
@ -2046,11 +2046,10 @@ void SpriteSetup(void)
|
|||
actor->user.z_tgt = actor->spr.pos.Z;
|
||||
if (start_on)
|
||||
{
|
||||
int amt;
|
||||
amt = actor->int_pos().Z - sectp->int_floorz();
|
||||
int amt = actor->int_pos().Z - sectp->int_floorz();
|
||||
|
||||
// start in the on position
|
||||
sectp->add_int_floorz(amt);
|
||||
sectp->setfloorz(actor->spr.pos.Z);
|
||||
actor->user.z_tgt = actor->user.pos.Z;
|
||||
|
||||
MoveSpritesWithSector(actor->sector(), amt, false); // floor
|
||||
|
@ -2071,7 +2070,7 @@ void SpriteSetup(void)
|
|||
amt = actor->int_pos().Z - sectp->int_ceilingz();
|
||||
|
||||
// starting in the on position
|
||||
sectp->add_int_ceilingz(amt);
|
||||
sectp->setceilingz(actor->spr.pos.Z);
|
||||
actor->user.z_tgt = actor->user.pos.Z;
|
||||
|
||||
MoveSpritesWithSector(actor->sector(), amt, true); // ceiling
|
||||
|
|
Loading…
Reference in a new issue