]> granicus.if.org Git - nethack/commitdiff
Make fill_special_room avoid themed rooms
authorcopperwater <aosdict@gmail.com>
Mon, 18 May 2020 01:47:10 +0000 (21:47 -0400)
committerPasi Kallinen <paxed@alt.org>
Sun, 27 Sep 2020 15:54:14 +0000 (18:54 +0300)
No code in this function would actually do anything if it were called on
a themed room, but since it is pretty clearly intended for the "regular"
special rooms, it's probably best to explicitly avoid themed rooms as
well.

src/sp_lev.c

index bf6096e327335abfc23f12d9371afcbe6c6a72d7..b3b369c73819dc684f2689267377f9efc822db2b 100755 (executable)
@@ -2686,7 +2686,7 @@ fill_special_room(croom, prefilled)
 struct mkroom *croom;
 boolean prefilled;
 {
-    if (!croom || croom->rtype == OROOM)
+    if (!croom || croom->rtype == OROOM || croom->rtype == THEMEROOM)
         return;
 
     if (!prefilled) {