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-05-23 21:38:03 -04:00
committed by Pasi Kallinen
parent 6348a53bd8
commit b67092b2a0

View File

@@ -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 */