mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Improve relative teleport interpolation
This commit is contained in:
parent
32bbc48be5
commit
4ff127bc0e
1 changed files with 4 additions and 6 deletions
|
@ -2405,11 +2405,7 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
|||
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)
|
||||
{
|
||||
|
@ -2417,6 +2413,7 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
|||
P_SetOrigin(bot, bot->x + x, bot->y + y, bot->z + z);
|
||||
if (splitscreen && mo->player == &players[secondarydisplayplayer] && camera2.chase)
|
||||
{
|
||||
camera2.reset = true;
|
||||
camera2.x += x;
|
||||
camera2.y += y;
|
||||
camera2.z += z;
|
||||
|
@ -2424,6 +2421,7 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
|||
}
|
||||
else if (camera.chase && mo->player == &players[displayplayer])
|
||||
{
|
||||
camera.reset = true;
|
||||
camera.x += x;
|
||||
camera.y += y;
|
||||
camera.z += z;
|
||||
|
|
Loading…
Reference in a new issue