added when -d isn't enabled, human gold drop won't drop out of rooms

This commit is contained in:
2024-07-16 22:09:28 -04:00
parent 6844a95305
commit ea3164ae07

View File

@ -185,6 +185,10 @@ bool level::is_available_all(const position &pos) const {
if (!map.is_available(pos))
return false;
if (!(enabled_features & FEATURE_DOORS) &&
map.which_room(pos) == -1)
return false;
if (player->get_pos() == pos)
return false;