From a3d1efc8d63988214c8eab19dbaf1af15a0fec67 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 30 Dec 2017 12:08:32 +0200 Subject: [PATCH] Better angle selection for rotated automap sprites https://forum.zdoom.org/viewtopic.php?t=58348 --- src/am_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/am_map.cpp b/src/am_map.cpp index 2d80b59a0e..452f82b785 100644 --- a/src/am_map.cpp +++ b/src/am_map.cpp @@ -2950,7 +2950,7 @@ void AM_drawThings () const size_t spriteIndex = sprite.spriteframes + (show > 1 ? t->frame : 0); frame = &SpriteFrames[spriteIndex]; - DAngle angle = 270. -t->Angles.Yaw; + DAngle angle = 270. + 22.5 - t->Angles.Yaw; if (frame->Texture[0] != frame->Texture[1]) angle += 180. / 16; if (am_rotate == 1 || (am_rotate == 2 && viewactive)) {