Skip to content

Commit

Permalink
Debug message about camera angle snapping
Browse files Browse the repository at this point in the history
If the camera smoother notices a big change in the
angle, it will not interpolate it because it is probably
due to teleportation.

This should never be triggered by normal player turns.
  • Loading branch information
skyjake committed Dec 2, 2011
1 parent 416ee84 commit f77085f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doomsday/engine/portable/src/r_main.c
Expand Up @@ -405,8 +405,12 @@ void R_CheckViewerLimits(viewer_t* src, viewer_t* dst)
src->pos[VZ] = dst->pos[VZ];
}
if(abs((int) dst->angle - (int) src->angle) >= ANGLE_45)
{
#ifdef _DEBUG
Con_Message("R_CheckViewerLimits: Snap camera angle to %08x.\n", dst->angle);
#endif
src->angle = dst->angle;

}
#undef MAXMOVE
}

Expand Down

0 comments on commit f77085f

Please sign in to comment.