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:
358fdd4
)
Code simplification.
author
Eric S. Raymond
<esr@thyrsus.com>
Wed, 21 Jun 2017 00:39:45 +0000
(20:39 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Wed, 21 Jun 2017 00:39:45 +0000
(20:39 -0400)
actions.c
patch
|
blob
|
history
diff --git
a/actions.c
b/actions.c
index 2b6d21742885a7d636e6247561db012fd50aa2ae..87301f72141a9aebd23360f9defe464163419d8f 100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-728,9
+728,7
@@
static int lock(token_t verb, token_t obj)
if (!game.panic)game.clock2 = PANICTIME;
game.panic = true;
} else {
- spk = game.prop[GRATE] ? GRATE_LOCKED : ALREADY_LOCKED;
- game.prop[GRATE] = 1;
- if (verb == LOCK)game.prop[GRATE] = 0;
+ game.prop[GRATE] = (verb == LOCK) ? 0 : 1;
spk = game.prop[GRATE] ? GRATE_UNLOCKED : GRATE_LOCKED;
}
}