shithub: choc

Download patch

ref: 1f2c4aa1a5b09084e62e1b941821241c85309884
parent: 2004f1db8a663b30f530aeda6d2e7a6ce518c0a9
author: Simon Howard <[email protected]>
date: Mon Mar 27 17:56:14 EST 2006

Fix divide by zero in 1427uv01.lmp caused by the use of int instead
of angle_t in R_ScaleFromGlobalAngle()

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 445

--- a/src/r_main.c
+++ b/src/r_main.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: r_main.c 45 2005-08-06 18:37:47Z fraggle $
+// $Id: r_main.c 445 2006-03-27 22:56:14Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -49,7 +49,7 @@
 //-----------------------------------------------------------------------------
 
 
-static const char rcsid[] = "$Id: r_main.c 45 2005-08-06 18:37:47Z fraggle $";
+static const char rcsid[] = "$Id: r_main.c 445 2006-03-27 22:56:14Z fraggle $";
 
 
 
@@ -478,8 +478,8 @@
 fixed_t R_ScaleFromGlobalAngle (angle_t visangle)
 {
     fixed_t		scale;
-    int			anglea;
-    int			angleb;
+    angle_t		anglea;
+    angle_t		angleb;
     int			sinea;
     int			sineb;
     fixed_t		num;