From 1d165f20eebcec7147f076db582694cb53620d0a Mon Sep 17 00:00:00 2001 From: PatR Date: Tue, 23 Jan 2024 16:52:39 -0800 Subject: [PATCH] supply_chest fix fix Reordering some tests to put the cheapest one first accidentally removed a negation, unintentionally changing the semantics. --- src/mklev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mklev.c b/src/mklev.c index 82550beba..294aa9030 100644 --- a/src/mklev.c +++ b/src/mklev.c @@ -1036,7 +1036,7 @@ fill_ordinary_room( * when few rooms; chance for 3 or more is negligible. */ /*assert(gn.nroom > 0); // must be true because we're filling a room*/ - if (!skip_chests && rn2(gn.nroom * 5 / 2) && somexyspace(croom, &pos)) + if (!skip_chests && !rn2(gn.nroom * 5 / 2) && somexyspace(croom, &pos)) (void) mksobj_at(rn2(3) ? LARGE_BOX : CHEST, pos.x, pos.y, TRUE, FALSE);