From d196965397196d49c43a7c10a53a4834b3aa1be1 Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 15 Jun 2015 22:44:38 -0400 Subject: [PATCH] logic bit Fix a logic mistake in the nowin_buf scenario of read_tribute. --- src/files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/files.c b/src/files.c index 3d59f0f33..83527c17d 100644 --- a/src/files.c +++ b/src/files.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 files.c $NHDT-Date: 1434421344 2015/06/16 02:22:24 $ $NHDT-Branch: master $:$NHDT-Revision: 1.180 $ */ +/* NetHack 3.6 files.c $NHDT-Date: 1434422673 2015/06/16 02:44:33 $ $NHDT-Branch: master $:$NHDT-Revision: 1.181 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -3504,7 +3504,7 @@ char *nowin_buf; } } else if (!strncmpi(&line[1], "e ", sizeof("e ") - 1)) { if (matchedtitle && (scope == PASSAGESCOPE) - && (!nowin_buf && tribwin != WIN_ERR)) + && ((!nowin_buf && tribwin != WIN_ERR) || nowin_buf)) goto cleanup; if (scope == TITLESCOPE) matchedtitle = FALSE;