projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
State-arithmetic elimination.
[open-adventure.git]
/
actions.c
diff --git
a/actions.c
b/actions.c
index 275a607faa2ad210e84c4089552169fd835b42d5..cfbb186e66963579528402d2e74fbad18b135ec9 100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-1052,9
+1052,8
@@
static int reservoir(void)
rspeak(NOTHING_HAPPENS);
return GO_CLEAROBJ;
} else {
rspeak(NOTHING_HAPPENS);
return GO_CLEAROBJ;
} else {
- /* FIXME: Arithmetic on state numbers */
- pspeak(RESER, look, game.prop[RESER] + 1, true);
- game.prop[RESER] = 1 - game.prop[RESER];
+ state_change(RESER,
+ game.prop[RESER] == WATERS_PARTED ? WATERS_UNPARTED : WATERS_PARTED);
if (AT(RESER))
return GO_CLEAROBJ;
else {
if (AT(RESER))
return GO_CLEAROBJ;
else {