mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 20:43:15 +00:00
- fixed: AActor::SetPortalTransition set an incorrect value for the previous position.
This commit is contained in:
parent
65f2433ac7
commit
4ca20e0297
1 changed files with 2 additions and 2 deletions
|
@ -3848,7 +3848,7 @@ void AActor::CheckPortalTransition(bool islinked)
|
|||
DVector3 oldpos = Pos();
|
||||
if (islinked && !moved) UnlinkFromWorld(&ctx);
|
||||
SetXYZ(PosRelative(Sector->GetOppositePortalGroup(sector_t::ceiling)));
|
||||
Prev = Pos() - oldpos;
|
||||
Prev += Pos() - oldpos;
|
||||
Sector = P_PointInSector(Pos());
|
||||
PrevPortalGroup = Sector->PortalGroup;
|
||||
moved = true;
|
||||
|
@ -3865,7 +3865,7 @@ void AActor::CheckPortalTransition(bool islinked)
|
|||
DVector3 oldpos = Pos();
|
||||
if (islinked && !moved) UnlinkFromWorld(&ctx);
|
||||
SetXYZ(PosRelative(Sector->GetOppositePortalGroup(sector_t::floor)));
|
||||
Prev = Pos() - oldpos;
|
||||
Prev += Pos() - oldpos;
|
||||
Sector = P_PointInSector(Pos());
|
||||
PrevPortalGroup = Sector->PortalGroup;
|
||||
moved = true;
|
||||
|
|
Loading…
Reference in a new issue