]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
another round angles to int bug (this time in PF_vectoyaw)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 17 Sep 2004 01:13:06 +0000 (01:13 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 17 Sep 2004 01:13:06 +0000 (01:13 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4511 d7cf8633-e32d-0410-b094-e92efae38249

pr_cmds.c

index 354cf937c2bf82075db8f20558e7b5c88ae047bc..b22682726f8c3229762ac24fb6640b0a96689421 100644 (file)
--- a/pr_cmds.c
+++ b/pr_cmds.c
@@ -522,7 +522,7 @@ void PF_vectoyaw (void)
                yaw = 0;
        else
        {
-               yaw = (int) (atan2(value1[1], value1[0]) * 180 / M_PI);
+               yaw = (atan2(value1[1], value1[0]) * 180 / M_PI);
                if (yaw < 0)
                        yaw += 360;
        }