diff options
author | Simon Howard | 2006-03-27 22:56:14 +0000 |
---|---|---|
committer | Simon Howard | 2006-03-27 22:56:14 +0000 |
commit | 1f2c4aa1a5b09084e62e1b941821241c85309884 (patch) | |
tree | 9928c63fe0ab046906a856cb166c2e5534ffa6ef /src | |
parent | 2004f1db8a663b30f530aeda6d2e7a6ce518c0a9 (diff) | |
download | chocolate-doom-1f2c4aa1a5b09084e62e1b941821241c85309884.tar.gz chocolate-doom-1f2c4aa1a5b09084e62e1b941821241c85309884.tar.bz2 chocolate-doom-1f2c4aa1a5b09084e62e1b941821241c85309884.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/r_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/r_main.c b/src/r_main.c index ba230097..3b710a14 100644 --- 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 @@ void R_InitPointToAngle (void) 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; |