From: Eric S. Raymond Date: Fri, 7 Apr 2023 17:09:57 +0000 (-0400) Subject: Remove unneeded use of put(). X-Git-Tag: 1.16~15 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=ab2779cd93e4757ea8a7631ed6447def7ded649b;p=open-adventure.git Remove unneeded use of put(). --- diff --git a/main.c b/main.c index 52e4187..981e4d4 100644 --- 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);