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

Function getRowIndex

src/OpenLoco/src/Ui/Windows/TownList.cpp:1329–1332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1327 }
1328
1329 static int getRowIndex(int16_t x, int16_t y)
1330 {
1331 return (x / 112) + (y / 112) * 5;
1332 }
1333
1334 // 0x0049AEFD
1335 static void onScrollMouseDown(Ui::Window& self, int16_t x, int16_t y, [[maybe_unused]] uint8_t scroll_index)

Callers 2

onScrollMouseDownFunction · 0.70
onScrollMouseOverFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected