mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 06:12:19 +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;
|
||||
if (am_rotate == 1 || (am_rotate == 2 && viewactive))
|
||||
{
|
||||
angle = 90.;
|
||||
angle = -90.;
|
||||
AM_rotatePoint (&pt.x, &pt.y);
|
||||
}
|
||||
else
|
||||
|
@ -2806,7 +2806,7 @@ void AM_drawThings ()
|
|||
if (frame->Texture[0] != frame->Texture[1]) angle += 180. / 16;
|
||||
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);
|
||||
|
||||
|
@ -2830,7 +2830,7 @@ void AM_drawThings ()
|
|||
if (am_rotate == 1 || (am_rotate == 2 && viewactive))
|
||||
{
|
||||
AM_rotatePoint (&p.x, &p.y);
|
||||
angle += -players[consoleplayer].camera->Angles.Yaw + 90.;
|
||||
angle += -players[consoleplayer].camera->Angles.Yaw - 90.;
|
||||
}
|
||||
|
||||
color = AMColors[AMColors.ThingColor];
|
||||
|
|
Loading…
Reference in a new issue