From: Holger Schemel Date: Wed, 22 Apr 2020 22:27:19 +0000 (+0200) Subject: minor change of preprocessor macro X-Git-Tag: 4.2.0.0~37 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f645e74fab72d2bc94db81ea937904a865d5831e;p=rocksndiamonds.git minor change of preprocessor macro --- diff --git a/src/game_em/logic.c b/src/game_em/logic.c index de3966c1..6270550d 100644 --- a/src/game_em/logic.c +++ b/src/game_em/logic.c @@ -12,8 +12,7 @@ #define ACID_ROLL /* rolling objects go into acid rather than remove it */ #define ACID_PLAYER /* player gets killed by acid, but without explosion */ -#define RANDOM_RAW (seed = seed << 31 | seed >> 1) -#define RANDOM(x) (RANDOM_RAW % x) +#define RANDOM(x) ((seed = seed << 31 | seed >> 1) % x) static short **cave, **next, **boom; static unsigned int seed;