summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-06-03 19:23:14 +0000
committerpeter1138 <peter1138@openttd.org>2006-06-03 19:23:14 +0000
commit91de9b7105079bdd47eb79d57f2676dc5b4760db (patch)
tree9ecf6657d7e0e6fd57fad74738d8800d37ceb451
parentce90b70a4181dde842beca57299843b977e32677 (diff)
downloadopenttd-91de9b7105079bdd47eb79d57f2676dc5b4760db.tar.xz
(svn r5088) - Add another set of parentheses, missed in r5085, somehow... (thanks ASM)
-rw-r--r--macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros.h b/macros.h
index 0ef35cc75..cd8c20114 100644
--- a/macros.h
+++ b/macros.h
@@ -126,7 +126,7 @@ static inline int KillFirstBit2x64(int value)
#define CHANCE16(a,b) ((uint16)Random() <= (uint16)((65536 * (a)) / (b)))
-#define CHANCE16R(a,b,r) ((uint16)(r=Random()) <= (uint16)((65536 * a) / (b)))
+#define CHANCE16R(a,b,r) ((uint16)(r=Random()) <= (uint16)((65536 * (a)) / (b)))
#define CHANCE16I(a,b,v) ((uint16)(v) <= (uint16)((65536 * (a)) / (b)))