Merge branch 'fix-teleport-interpolation' into 'fix-reset-interpolation'
412 teleport: correctly update interpolation state See merge request KartKrew/Kart!1193
This commit is contained in:
parent
d0a8d0bc57
commit
43ecac1e8d
2 changed files with 3 additions and 5 deletions
|
|
@ -2703,11 +2703,7 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
|
|||
y = line->args[3] << FRACBITS;
|
||||
z = line->args[4] << FRACBITS;
|
||||
|
||||
P_UnsetThingPosition(mo);
|
||||
mo->x += x;
|
||||
mo->y += y;
|
||||
mo->z += z;
|
||||
P_SetThingPosition(mo);
|
||||
P_SetOrigin(mo, mo->x + x, mo->y + y, mo->z + z);
|
||||
|
||||
if (mo->player)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -163,6 +163,8 @@ boolean P_Teleport(mobj_t *thing, fixed_t x, fixed_t y, fixed_t z, angle_t angle
|
|||
P_ResetCamera(thing->player, &camera[i]);
|
||||
}
|
||||
|
||||
R_ResetViewInterpolation(1 + i);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue