room stocking would put multiple items on the same spot

This commit is contained in:
Patric Mueller
2022-09-08 09:24:50 +02:00
parent fa320a0a5f
commit 487f1f7ccc
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -1020,6 +1020,7 @@ lit candles generated by wishing could have wrong light radius
better feedback from detect unseen better feedback from detect unseen
make public server admin messages use urgent_pline make public server admin messages use urgent_pline
cannot kick while squeezed on top of a boulder 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 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
+3 -1
View File
@@ -838,7 +838,9 @@ fill_ordinary_room(struct mkroom *croom)
impossible("trycnt overflow4"); impossible("trycnt overflow4");
break; 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);
}
} }
} }
} }