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:
819aed5
)
Remove unneeded use of put().
author
Eric S. Raymond
<esr@thyrsus.com>
Fri, 7 Apr 2023 17:09:57 +0000
(13:09 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Fri, 7 Apr 2023 17:09:57 +0000
(13:09 -0400)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 52e418745398b019327178fbd4e3d6222ac5f389..981e4d4580098e6f9ba88e8176510cfac5bcccf5 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-874,8
+874,8
@@
static bool closecheck(void)
game.newloc = LOC_NE;
/* Leave the grate with normal (non-negative) property.
* Reuse sign. */
-
put(GRATE, LOC_SW, 0
);
-
put(SIGN, LOC_SW, 0
);
+
move(GRATE, LOC_SW
);
+
move(SIGN, LOC_SW
);
game.objects[SIGN].prop = ENDGAME_SIGN;
game.objects[SNAKE].prop = put(SNAKE, LOC_SW, SNAKE_CHASED);
game.objects[BIRD].prop = put(BIRD, LOC_SW, BIRD_CAGED);