mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
SW: Lock angle and horiz right after teleporting to sprite
This commit is contained in:
parent
8e9130c31a
commit
e2a789b8cc
2 changed files with 3 additions and 1 deletions
|
@ -1333,6 +1333,7 @@ void
|
|||
DoPlayerTeleportToSprite(PLAYERp pp, SPRITEp sp)
|
||||
{
|
||||
pp->camq16ang = pp->q16ang = pp->oq16ang = fix16_from_int(sp->ang);
|
||||
pp->camq16horiz = pp->q16horiz; // Ensure horiz is initially locked
|
||||
pp->posx = pp->oposx = pp->oldposx = sp->x;
|
||||
pp->posy = pp->oposy = pp->oldposy = sp->y;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue