projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2a686b
)
Remove arithmetic on a location number.
author
Eric S. Raymond
<esr@thyrsus.com>
Thu, 6 Jul 2017 00:51:45 +0000
(20:51 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Thu, 6 Jul 2017 00:51:45 +0000
(20:51 -0400)
actions.c
patch
|
blob
|
history
diff --git
a/actions.c
b/actions.c
index e7574be4f2ce3c0e32af03376c98a04306cc25af..af36ae6a68069212218b5c11076a9d3f74177b31 100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-1073,8
+1073,7
@@
static int read(struct command_t command)
static int reservoir(void)
/* Z'ZZZ (word gets recomputed at startup; different each game). */
{
- /* FIXME: Arithmetic on state numbers */
- if (!AT(RESER) && game.loc != game.fixed[RESER] - 1) {
+ if (!AT(RESER) && game.loc != LOC_RESBOTTOM) {
rspeak(NOTHING_HAPPENS);
return GO_CLEAROBJ;
} else {