Add: show fallback sprites with debuglevel sprite=4

This commit is contained in:
Johannes E. Krause
2023-06-27 12:46:14 +02:00
committed by rubidium42
parent 55c07eed59
commit 5b0cfc7ea5
2 changed files with 6 additions and 2 deletions

View File

@@ -213,6 +213,7 @@ static void LoadSpriteTables()
LoadNewGRF(SPR_NEWGRFS_BASE, 2);
uint total_extra_graphics = SPR_NEWGRFS_BASE - SPR_OPENTTD_BASE;
Debug(sprite, 4, "Checking sprites from fallback grf");
_missing_extra_graphics = GetSpriteCountForFile(master_filename, SPR_OPENTTD_BASE, SPR_NEWGRFS_BASE);
Debug(sprite, 1, "{} extra sprites, {} from baseset, {} from fallback", total_extra_graphics, total_extra_graphics - _missing_extra_graphics, _missing_extra_graphics);