diff options
author | Patric Stout <truebrain@openttd.org> | 2021-07-08 19:31:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 19:31:00 +0200 |
commit | c1f13e03729b0bb13236867a633c446f3cce7b81 (patch) | |
tree | 23133b3f0610ebb8a32b06086ba5c5ee9292ca0f /src/saveload/saveload.cpp | |
parent | 852e056d6f47a913ee0e13f1779910e18dbf97b7 (diff) | |
download | openttd-c1f13e03729b0bb13236867a633c446f3cce7b81.tar.xz |
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.
Diffstat (limited to 'src/saveload/saveload.cpp')
-rw-r--r-- | src/saveload/saveload.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index 6e3d8f8e0..74978c4db 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -1918,7 +1918,8 @@ std::vector<SaveLoad> SlTableHeader(const SaveLoadTable &slt) auto sld_it = key_lookup.find(key); 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; SaveLoadType slt; |