From b67092b2a05502819acc468c3992d478b73db64a Mon Sep 17 00:00:00 2001 From: copperwater Date: Sat, 23 May 2020 21:38:03 -0400 Subject: [PATCH] Fix: stairs could generate in themed rooms if others were available This is a simple && vs || bug. The clear intention of the code is that stairs aren't supposed to generate in themed rooms unless there is no other choice. Fixes #348 --- src/mklev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mklev.c b/src/mklev.c index 8a6e5f4c7..61dd00ef0 100644 --- a/src/mklev.c +++ b/src/mklev.c @@ -1661,7 +1661,7 @@ int phase; && ((croom != g.dnstairs_room && croom != g.upstairs_room) || phase < 1) && (croom->rtype == OROOM - || ((phase < 2) || croom->rtype == THEMEROOM))); + || ((phase < 2) && croom->rtype == THEMEROOM))); } /* find a good room to generate an up or down stairs in */