MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / updateWaterPalette

Function updateWaterPalette

src/OpenLoco/src/Objects/ObjectManager.cpp:1107–1117  ·  view source on GitHub ↗

0x004C57A6

Source from the content-addressed store, hash-verified

1105
1106 // 0x004C57A6
1107 static void updateWaterPalette()
1108 {
1109 const auto* waterObj = get<WaterObject>();
1110 if (waterObj == nullptr)
1111 {
1112 return;
1113 }
1114
1115 const auto paletteImageId = waterObj->image + Water::ImageIds::kColourPalette;
1116 Gfx::PaletteMap::setEntryImage(ExtColour::water, paletteImageId);
1117 }
1118
1119 // 0x00469F90
1120 static void resetDefaultLandObject()

Callers 1

updateTerraformObjectsFunction · 0.85

Calls 1

setEntryImageFunction · 0.85

Tested by

no test coverage detected