Code simplification.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 13 Jun 2017 15:28:53 +0000 (11:28 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 13 Jun 2017 15:28:53 +0000 (11:28 -0400)
actions.c

index eb7e13cc0c22d3827723cdc214953668fadddc50..1e1e223035cf418f4c4727f8ef6c27495c7af3e5 100644 (file)
--- a/actions.c
+++ b/actions.c
@@ -392,13 +392,11 @@ static int drink(token_t verb, token_t obj)
        return(8000);
     if (obj != BLOOD) {
        if (obj != 0 && obj != WATER)spk=110;
-       if (spk == 110 || LIQUID() != WATER || !HERE(BOTTLE)) {
-           RSPEAK(spk);
-           return GO_CLEAROBJ;
+       if (spk != 110 && LIQUID() == WATER && HERE(BOTTLE)) {
+           game.prop[BOTTLE]=1;
+           game.place[WATER]=0;
+           spk=74;
        }
-       game.prop[BOTTLE]=1;
-       game.place[WATER]=0;
-       spk=74;
     } else {
        DSTROY(BLOOD);
        game.prop[DRAGON]=2;