kill P_TeleportMove

P_MoveOrigin literally just calls that so replace it with that
This commit is contained in:
Alug committed 2025-01-24 20:44:21 +01:00
1 parent 5f546a3df8
commit a1074852dd
1 file changed
+5 -14
+5 -14
View File
@@ -77,9 +77,9 @@ camera_t *mapcampointer;
//
//
// P_TeleportMove
// P_MoveOrigin - P_TeleportMove which KEEPS interpolation values.
//
static boolean P_TeleportMove(mobj_t *thing, fixed_t x, fixed_t y, fixed_t z)
boolean P_MoveOrigin(mobj_t *thing, fixed_t x, fixed_t y, fixed_t z)
{
// the move is ok,
// so link the thing into its new position
@@ -109,28 +109,19 @@ static boolean P_TeleportMove(mobj_t *thing, fixed_t x, fixed_t y, fixed_t z)
return true;
}
//
// P_SetOrigin - P_TeleportMove which RESETS interpolation values.
//
boolean P_SetOrigin(mobj_t *thing, fixed_t x, fixed_t y, fixed_t z)
{
boolean result = P_TeleportMove(thing, x, y, z);
if (result == true)
if (P_MoveOrigin(thing, x, y, z))
{
thing->old_x = thing->x;
thing->old_y = thing->y;
thing->old_z = thing->z;
}
return result;
}
//
// P_MoveOrigin - P_TeleportMove which KEEPS interpolation values.
//
boolean P_MoveOrigin(mobj_t *thing, fixed_t x, fixed_t y, fixed_t z)
{
return P_TeleportMove(thing, x, y, z);
return true;
}
// =========================================================================