supply_chest fix fix

Reordering some tests to put the cheapest one first accidentally
removed a negation, unintentionally changing the semantics.
This commit is contained in:
PatR
2024-01-23 16:52:39 -08:00
parent ebd09e94f6
commit 1d165f20ee

View File

@@ -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);