summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2011-10-15 00:28:28 +0000
committerSimon Howard2011-10-15 00:28:28 +0000
commit44401835aaa4aea0d1ec63618c672a4c49730158 (patch)
tree14d2fa846a67960cdd0c32d3dd0e25853948d162
parenta1b99817a728a15635f6fd93f147bd6f99c6d9ec (diff)
downloadchocolate-doom-44401835aaa4aea0d1ec63618c672a4c49730158.tar.gz
chocolate-doom-44401835aaa4aea0d1ec63618c672a4c49730158.tar.bz2
chocolate-doom-44401835aaa4aea0d1ec63618c672a4c49730158.zip
Define angle definitions as unsigned constants - fixes bug with
multiplayer repsawn in Hexen MAP02. Subversion-branch: /branches/v2-branch Subversion-revision: 2426
-rw-r--r--src/tables.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tables.h b/src/tables.h
index f4fd1f55..cac33f27 100644
--- a/src/tables.h
+++ b/src/tables.h
@@ -68,11 +68,11 @@ extern const byte gammatable[5][256];
// Binary Angle Measument, BAM.
-#define ANG45 0x20000000
-#define ANG90 0x40000000
-#define ANG180 0x80000000
-#define ANG270 0xc0000000
-#define ANG_MAX 0xffffffff
+#define ANG45 0x20000000U
+#define ANG90 0x40000000U
+#define ANG180 0x80000000U
+#define ANG270 0xc0000000U
+#define ANG_MAX 0xffffffffU
#define ANG1 (ANG45 / 45)
#define ANG60 (ANG180 / 3)
@@ -80,7 +80,7 @@ extern const byte gammatable[5][256];
// Heretic code uses this definition as though it represents one
// degree, but it is not! This is actually ~1.40 degrees.
-#define ANG1_X 0x01000000
+#define ANG1_X 0x01000000U
#define SLOPERANGE 2048
#define SLOPEBITS 11