mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-14 08:30:35 +00:00
- SW: Don't back up the actor's Z after changing it in KeepActorOnFloor()
.
* This seems completely wrong and kills Z interpolation on slopes, vators, etc. * Thanks Graf 😁 * Fixes #844. * Partially addresses #845.
This commit is contained in:
parent
1e3a285534
commit
1f489d5dbe
1 changed files with 0 additions and 6 deletions
|
@ -549,7 +549,6 @@ void KeepActorOnFloor(DSWActor* actor)
|
|||
actor->user.Flags &= ~(SPR_SWIMMING);
|
||||
actor->spr.cstat &= ~(CSTAT_SPRITE_YCENTER);
|
||||
actor->spr.pos.Z = actor->user.oz = actor->user.loz;
|
||||
actor->backupz();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -560,7 +559,6 @@ void KeepActorOnFloor(DSWActor* actor)
|
|||
|
||||
// are swimming
|
||||
actor->spr.pos.Z = actor->user.oz = actor->user.loz - depth;
|
||||
actor->backupz();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -569,7 +567,6 @@ void KeepActorOnFloor(DSWActor* actor)
|
|||
{
|
||||
NewStateGroup(actor, actor->user.ActorActionSet->Swim);
|
||||
actor->spr.pos.Z = actor->user.oz = actor->user.loz - depth;
|
||||
actor->backupz();
|
||||
actor->user.Flags |= (SPR_SWIMMING);
|
||||
actor->spr.cstat |= (CSTAT_SPRITE_YCENTER);
|
||||
}
|
||||
|
@ -578,7 +575,6 @@ void KeepActorOnFloor(DSWActor* actor)
|
|||
actor->user.Flags &= ~(SPR_SWIMMING);
|
||||
actor->spr.cstat &= ~(CSTAT_SPRITE_YCENTER);
|
||||
actor->spr.pos.Z = actor->user.oz = actor->user.loz;
|
||||
actor->backupz();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -593,7 +589,6 @@ void KeepActorOnFloor(DSWActor* actor)
|
|||
if (actor->user.Flags & (SPR_MOVED))
|
||||
{
|
||||
actor->spr.pos.Z = actor->user.oz = actor->user.loz;
|
||||
actor->backupz();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -602,7 +597,6 @@ void KeepActorOnFloor(DSWActor* actor)
|
|||
FAFgetzrangepoint(actor->spr.pos, actor->sector(),&ceilz, &ctrash, &florz, &ftrash);
|
||||
|
||||
actor->spr.pos.Z = actor->user.oz = florz;
|
||||
actor->backupz();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue