mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-02-02 03:11:22 +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();
|
DVector3 oldpos = Pos();
|
||||||
if (islinked && !moved) UnlinkFromWorld(&ctx);
|
if (islinked && !moved) UnlinkFromWorld(&ctx);
|
||||||
SetXYZ(PosRelative(Sector->GetOppositePortalGroup(sector_t::ceiling)));
|
SetXYZ(PosRelative(Sector->GetOppositePortalGroup(sector_t::ceiling)));
|
||||||
Prev = Pos() - oldpos;
|
Prev += Pos() - oldpos;
|
||||||
Sector = P_PointInSector(Pos());
|
Sector = P_PointInSector(Pos());
|
||||||
PrevPortalGroup = Sector->PortalGroup;
|
PrevPortalGroup = Sector->PortalGroup;
|
||||||
moved = true;
|
moved = true;
|
||||||
|
@ -3865,7 +3865,7 @@ void AActor::CheckPortalTransition(bool islinked)
|
||||||
DVector3 oldpos = Pos();
|
DVector3 oldpos = Pos();
|
||||||
if (islinked && !moved) UnlinkFromWorld(&ctx);
|
if (islinked && !moved) UnlinkFromWorld(&ctx);
|
||||||
SetXYZ(PosRelative(Sector->GetOppositePortalGroup(sector_t::floor)));
|
SetXYZ(PosRelative(Sector->GetOppositePortalGroup(sector_t::floor)));
|
||||||
Prev = Pos() - oldpos;
|
Prev += Pos() - oldpos;
|
||||||
Sector = P_PointInSector(Pos());
|
Sector = P_PointInSector(Pos());
|
||||||
PrevPortalGroup = Sector->PortalGroup;
|
PrevPortalGroup = Sector->PortalGroup;
|
||||||
moved = true;
|
moved = true;
|
||||||
|
|
Loading…
Reference in a new issue