]> granicus.if.org Git - nethack/commitdiff
room stocking would put multiple items on the same spot
authorPatric Mueller <bhaak@gmx.net>
Thu, 8 Sep 2022 07:23:57 +0000 (09:23 +0200)
committerPatric Mueller <bhaak@gmx.net>
Thu, 8 Sep 2022 07:24:50 +0000 (09:24 +0200)
doc/fixes3-7-0.txt
src/mklev.c

index 80350343740c51aa0dcfe1ebf2f30bc92210e4e4..479fc5c575883e481f10030865303a27542e727e 100644 (file)
@@ -1020,6 +1020,7 @@ lit candles generated by wishing could have wrong light radius
 better feedback from detect unseen
 make public server admin messages use urgent_pline
 cannot kick while squeezed on top of a boulder
+room stocking would put multiple items on the same spot
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index 2316f452158dcf6530f5a306ba1bb838e3b5d316..38a7e882db89532091aa669d04a59641bcfe5aa7 100644 (file)
@@ -838,7 +838,9 @@ fill_ordinary_room(struct mkroom *croom)
                 impossible("trycnt overflow4");
                 break;
             }
-            (void) mkobj_at(RANDOM_CLASS, pos.x, pos.y, TRUE);
+            if (somexyspace(croom, &pos)) {
+                (void) mkobj_at(RANDOM_CLASS, pos.x, pos.y, TRUE);
+            }
         }
     }
 }