Add CheckCaches mode to emit a log/save/screenshot on detected issue

This commit is contained in:
Jonathan G Rennison
2021-10-03 23:57:27 +01:00
parent 1b8bbdaf76
commit 24fdc8331b
10 changed files with 160 additions and 6 deletions

View File

@@ -938,7 +938,7 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
InvalidateWindowData(WC_CLIENT_LIST, 0);
InvalidateWindowClassesData(WC_DEPARTURES_BOARD, 0);
CheckCaches(true, nullptr);
CheckCaches(true, nullptr, CHECK_CACHE_ALL | CHECK_CACHE_EMIT_LOG);
break;
}