Skip to content

Commit 0f7281f

Browse files
authored
Merge pull request #5437 from myk002/myk_downgrade_warning
[preserve-rooms] downgrade warning to debug
2 parents d89ea2b + 2fb9a27 commit 0f7281f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Template for new versions:
6161
- `getplants`: fix logic for determining whether plant growths have been picked
6262
- `gui/teleport`: adapt to new behavior in DF 51.11 to avoid a crash when teleporting items into mid-air
6363
- `script-manager`: fix lua scripts in mods not being reloaded properly upon entering a saved world on Windows
64+
- `preserve-rooms`: don't warn when a room is assigned to a non-existent unit. this is now common behavior for DF when it keeps a room for an unloaded unit
6465

6566
## Misc Improvements
6667
- All places where units are listed in DFHack tools now show the translated English name in addition to the native name. In particular, this makes units searchable by English name in `gui/sitemap`.

plugins/preserve-rooms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ static void process_rooms(color_ostream &out,
513513
}
514514
auto owner = Buildings::getOwner(zone);
515515
if (!owner) {
516-
WARN(cycle, out).print("building %d has owner id %d but no such unit exists\n", zone->id, zone->assigned_unit_id);
516+
DEBUG(cycle, out).print("building %d has owner id %d but no such unit exists\n", zone->id, zone->assigned_unit_id);
517517
continue;
518518
}
519519
auto hf = df::historical_figure::find(owner->hist_figure_id);

0 commit comments

Comments
 (0)