room stocking would put multiple items on the same spot
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user