mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- fixed angles for am_rotate.
This commit is contained in:
parent
b796a5fed6
commit
b93d4a796a
1 changed files with 3 additions and 3 deletions
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue