kill P_TeleportMove

P_MoveOrigin literally just calls that so replace it with that
This commit is contained in:
Alug committed 2025-01-30 10:30:19 +01:00
1 parent bab120235d
commit 2ebf66b99c
1 file changed
+5 -14
+5 -14
View File
@@ -76,9 +76,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
@@ -108,28 +108,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;
}
// =========================================================================