From 3e7459e875140811a07552968659321866fbfa4a Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 17 Sep 2004 01:13:06 +0000 Subject: [PATCH] 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 --- pr_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2