(svn r5088) - Add another set of parentheses, missed in r5085, somehow... (thanks ASM)
authorpeter1138
Sat, 03 Jun 2006 19:23:14 +0000
changeset 3943 d3d5f7b3d3d0
parent 3942 718fa406d7eb
child 3944 7b1b00c8541d
(svn r5088) - Add another set of parentheses, missed in r5085, somehow... (thanks ASM)
macros.h
--- a/macros.h	Sat Jun 03 19:17:34 2006 +0000
+++ b/macros.h	Sat Jun 03 19:23:14 2006 +0000
@@ -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)))