mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +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);
|
const size_t spriteIndex = sprite.spriteframes + (show > 1 ? t->frame : 0);
|
||||||
|
|
||||||
frame = &SpriteFrames[spriteIndex];
|
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 (frame->Texture[0] != frame->Texture[1]) angle += 180. / 16;
|
||||||
if (am_rotate == 1 || (am_rotate == 2 && viewactive))
|
if (am_rotate == 1 || (am_rotate == 2 && viewactive))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue