From: havoc Date: Fri, 17 Sep 2004 01:13:06 +0000 (+0000) Subject: another round angles to int bug (this time in PF_vectoyaw) X-Git-Tag: xonotic-v0.1.0preview~5595 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=3e7459e875140811a07552968659321866fbfa4a;p=xonotic%2Fdarkplaces.git another round angles to int bug (this time in PF_vectoyaw) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4511 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/pr_cmds.c b/pr_cmds.c index 354cf937..b2268272 100644 --- 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; }