changeset 3943:2337be61b804 draft

(svn r5088) - Add another set of parentheses, missed in r5085, somehow... (thanks ASM)
author peter1138 <peter1138@openttd.org>
date Sat, 03 Jun 2006 19:23:14 +0000
parents 342225d92c15
children 9b0cfceb17d1
files macros.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/macros.h
+++ b/macros.h
@@ -126,7 +126,7 @@
 
 
 #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)))