projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a7d321
)
minor change of preprocessor macro
author
Holger Schemel
<info@artsoft.org>
Wed, 22 Apr 2020 22:27:19 +0000
(
00:27
+0200)
committer
Holger Schemel
<info@artsoft.org>
Tue, 19 May 2020 16:21:19 +0000
(18:21 +0200)
src/game_em/logic.c
patch
|
blob
|
history
diff --git
a/src/game_em/logic.c
b/src/game_em/logic.c
index de3966c1b137e44ab3ed66e17f693ab86788b37f..6270550dd6ee8c5b36c1a9fd23a1b626038d5fb5 100644
(file)
--- 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;