- floatified AActor::Prev plus the stuff using it.
- rewrote some coordinate functions in AActor to use real float math instead of converting back and forth between float and fixed.
This commit is contained in:
parent
2b33601d00
commit
1125101b37
13 changed files with 108 additions and 92 deletions
|
|
@ -2299,8 +2299,8 @@ bool P_TryMove(AActor *thing, fixed_t x, fixed_t y,
|
|||
{
|
||||
thing->UnlinkFromWorld();
|
||||
thing->SetXY(tm.x + port->mXDisplacement, tm.y + port->mYDisplacement);
|
||||
thing->PrevX += port->mXDisplacement;
|
||||
thing->PrevY += port->mYDisplacement;
|
||||
thing->Prev.X += FIXED2DBL(port->mXDisplacement);
|
||||
thing->Prev.Y += FIXED2DBL(port->mYDisplacement);
|
||||
thing->LinkToWorld();
|
||||
P_FindFloorCeiling(thing);
|
||||
portalcrossed = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue