Debug: Allow clicking to highlight group in sprite group dump window

This commit is contained in:
Jonathan G Rennison
2022-06-01 21:31:05 +01:00
parent 6d877b5e70
commit 564d7e5029
8 changed files with 84 additions and 57 deletions

View File

@@ -1619,7 +1619,7 @@ void AnalyseEngineCallbacks()
}
}
void DumpVehicleSpriteGroup(const Vehicle *v, std::function<void(const char *)> print)
void DumpVehicleSpriteGroup(const Vehicle *v, DumpSpriteGroupPrinter print)
{
const SpriteGroup *root_spritegroup = nullptr;
if (v->IsGroundVehicle()) root_spritegroup = GetWagonOverrideSpriteSet(v->engine_type, v->cargo_type, v->GetGroundVehicleCache()->first_engine);