Skip to content

Commit

Permalink
Fixed bug in the conversion of mobj angle/visangle to model yaw which…
Browse files Browse the repository at this point in the history
… resulted in models always being drawn facing east.
  • Loading branch information
danij committed Jul 6, 2008
1 parent f98515d commit 64b8552
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doomsday/engine/portable/src/r_things.c
Expand Up @@ -781,11 +781,10 @@ void R_ProjectSprite(mobj_t *mo)
else
{
if(useSRVOAngle && !netGame && !playback)
vis->data.mo.yaw = (float) (mo->visAngle << 16);
vis->data.mo.yaw = (mo->visAngle << 16) /
(float) ANGLE_MAX * 360 - 90;
else
vis->data.mo.yaw = (float) mo->angle;

vis->data.mo.yaw /= (float) ANGLE_MAX * -360;
vis->data.mo.yaw = mo->angle / (float) ANGLE_MAX * 360 - 90;
}

// How about a unique offset?
Expand Down

0 comments on commit 64b8552

Please sign in to comment.