mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-22 03:46:55 +01:00
Fix: reduce the amount of debug messages on -dsl=2 (#9420)
LoadCheck makes it sound like something is really broken while loading savegames, while it really is perfectly normal, as most chunks do not implement LoadCheck.
This commit is contained in:
parent
852e056d6f
commit
c1f13e0372
@ -1918,7 +1918,8 @@ std::vector<SaveLoad> SlTableHeader(const SaveLoadTable &slt)
|
|||||||
|
|
||||||
auto sld_it = key_lookup.find(key);
|
auto sld_it = key_lookup.find(key);
|
||||||
if (sld_it == key_lookup.end()) {
|
if (sld_it == key_lookup.end()) {
|
||||||
Debug(sl, 2, "Field '{}' of type 0x{:02x} not found, skipping", key, type);
|
/* SLA_LOADCHECK triggers this debug statement a lot and is perfectly normal. */
|
||||||
|
Debug(sl, _sl.action == SLA_LOAD ? 2 : 6, "Field '{}' of type 0x{:02x} not found, skipping", key, type);
|
||||||
|
|
||||||
std::shared_ptr<SaveLoadHandler> handler = nullptr;
|
std::shared_ptr<SaveLoadHandler> handler = nullptr;
|
||||||
SaveLoadType slt;
|
SaveLoadType slt;
|
||||||
|
Loading…
Reference in New Issue
Block a user