SW: Lock angle and horiz right after teleporting to sprite

This commit is contained in:
NY00123 2020-04-16 21:43:14 +03:00 committed by Christoph Oelckers
parent 8e9130c31a
commit e2a789b8cc
2 changed files with 3 additions and 1 deletions

View file

@ -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;