tailor: gatekeep debugging code

develop
Kelly Kinkade 2023-03-27 00:44:03 -05:00
parent 0f5456c45b
commit f3862e3eec
2 changed files with 14 additions and 7 deletions

@ -44,7 +44,11 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
- `buildingplan`: you can no longer designate constructions on tiles with magma or deep water
- `buildingplan`: fixed material filter getting lost for planning buildings on save/reload
- `buildingplan`: respect building size limits (e.g. roads and bridges cannot be more than 31 tiles in any dimension)
- `tailor`: now properly discriminates between dyed and undyed cloth, no longer defaults to using adamantine, properly tracks material requirements for already queued orders, skips units who can't wear clothes, and hopefully won't over-order items anymore
- `tailor`: properly discriminates between dyed and undyed cloth
- `tailor`: no longer defaults to using adamantine
- `tailor`: properly tracks material requirements for already queued orders
- `tailor`: skips units who can't wear clothes
- `tailor`: hopefully won't over-order items any more
## Misc Improvements
- `buildingplan`: filters and global settings are now ignored when manually choosing items for a building

@ -192,13 +192,16 @@ public:
available[std::make_pair(t, size)] += 1;
}
for (auto& i : available)
if (DBG_NAME(cycle).isEnabled(DebugCategory::LDEBUG))
{
df::item_type t;
int size;
std::tie(t, size) = i.first;
DEBUG(cycle).print("tailor: %d %s of size %d found\n",
i.second, ENUM_KEY_STR(item_type, t).c_str(), size);
for (auto& i : available)
{
df::item_type t;
int size;
std::tie(t, size) = i.first;
DEBUG(cycle).print("tailor: %d %s of size %d found\n",
i.second, ENUM_KEY_STR(item_type, t).c_str(), size);
}
}
}