# HG changeset patch # User peter1138 # Date 1149362594 0 # Node ID 2337be61b804145a5ac3ebf4aeae6fff70c4567d # Parent 342225d92c15307f18ad104b9dddf75c05f5b44a (svn r5088) - Add another set of parentheses, missed in r5085, somehow... (thanks ASM) diff --git a/macros.h b/macros.h --- 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)))