From a8a47a9eb05621461a8e0d12b8ea10ebc55220d0 Mon Sep 17 00:00:00 2001 From: NY00123 Date: Sat, 4 Apr 2020 00:35:10 +0300 Subject: [PATCH] SW: Fix typo in DoPlayerTeleportToSprite, following the migration to q16 angles --- source/sw/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sw/src/player.cpp b/source/sw/src/player.cpp index 2eb121bc9..d560fbd57 100644 --- a/source/sw/src/player.cpp +++ b/source/sw/src/player.cpp @@ -1332,7 +1332,7 @@ DoPlayerTeleportPause(PLAYERp pp) void DoPlayerTeleportToSprite(PLAYERp pp, SPRITEp sp) { - pp->q16ang = pp->q16ang = fix16_from_int(sp->ang); + pp->q16ang = pp->oq16ang = fix16_from_int(sp->ang); pp->posx = pp->oposx = pp->oldposx = sp->x; pp->posy = pp->oposy = pp->oldposy = sp->y;