mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
Better angle selection for rotated automap sprites
https://forum.zdoom.org/viewtopic.php?t=58348
This commit is contained in:
parent
19d25b00a3
commit
a3d1efc8d6
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue