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
This commit is contained in:
copperwater
2020-09-28 20:00:12 +03:00
committed by Pasi Kallinen
parent 6348a53bd8
commit b67092b2a0
+1 -1
View File
@@ -1661,7 +1661,7 @@ int phase;
&& ((croom != g.dnstairs_room && croom != g.upstairs_room) && ((croom != g.dnstairs_room && croom != g.upstairs_room)
|| phase < 1) || phase < 1)
&& (croom->rtype == OROOM && (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 */ /* find a good room to generate an up or down stairs in */