Codechange: Access temporary storage through ResolverObject during sprite layout preprocessing.

This commit is contained in:
frosch
2025-05-05 21:59:56 +02:00
committed by frosch
parent 85be7a4d92
commit f59cf73b88
10 changed files with 24 additions and 22 deletions

View File

@@ -507,7 +507,7 @@ void DrawNewHouseTile(TileInfo *ti, HouseID house_id)
if (group != nullptr) {
/* Limit the building stage to the number of stages supplied. */
uint8_t stage = GetHouseBuildingStage(ti->tile);
auto processor = group->ProcessRegisters(&stage);
auto processor = group->ProcessRegisters(object, &stage);
auto dts = processor.GetLayout();
DrawTileLayout(ti, dts, stage, house_id);
}
@@ -528,7 +528,7 @@ void DrawNewHouseTileInGUI(int x, int y, const HouseSpec *spec, HouseID house_id
if (group == nullptr) return;
uint8_t stage = TOWN_HOUSE_COMPLETED;
auto processor = group->ProcessRegisters(&stage);
auto processor = group->ProcessRegisters(object, &stage);
auto dts = processor.GetLayout();
PaletteID palette = GetColourPalette(spec->random_colour[0]);