- fixed angles for am_rotate.

This commit is contained in:
Christoph Oelckers 2016-04-06 17:27:49 +02:00
parent b796a5fed6
commit b93d4a796a

View file

@ -2645,7 +2645,7 @@ void AM_drawPlayers ()
pt.y = pos.Y; pt.y = pos.Y;
if (am_rotate == 1 || (am_rotate == 2 && viewactive)) if (am_rotate == 1 || (am_rotate == 2 && viewactive))
{ {
angle = 90.; angle = -90.;
AM_rotatePoint (&pt.x, &pt.y); AM_rotatePoint (&pt.x, &pt.y);
} }
else else
@ -2806,7 +2806,7 @@ void AM_drawThings ()
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))
{ {
angle += players[consoleplayer].camera->Angles.Yaw - 90.; angle += players[consoleplayer].camera->Angles.Yaw + 90.;
} }
rotation = int((angle.Normalized360() * (16. / 360.)).Degrees); rotation = int((angle.Normalized360() * (16. / 360.)).Degrees);
@ -2830,7 +2830,7 @@ void AM_drawThings ()
if (am_rotate == 1 || (am_rotate == 2 && viewactive)) if (am_rotate == 1 || (am_rotate == 2 && viewactive))
{ {
AM_rotatePoint (&p.x, &p.y); AM_rotatePoint (&p.x, &p.y);
angle += -players[consoleplayer].camera->Angles.Yaw + 90.; angle += -players[consoleplayer].camera->Angles.Yaw - 90.;
} }
color = AMColors[AMColors.ThingColor]; color = AMColors[AMColors.ThingColor];