MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetSmallMapStationMiddle

Function GetSmallMapStationMiddle

src/smallmap_gui.cpp:2099–2102  ·  view source on GitHub ↗

* Determine the middle of a station in the smallmap window. * @param st The station we're looking for. * @return Middle point of the station in the smallmap window. */

Source from the content-addressed store, hash-verified

2097 * @return Middle point of the station in the smallmap window.
2098 */
2099Point GetSmallMapStationMiddle(const Window *w, const Station *st)
2100{
2101 return static_cast<const SmallMapWindow *>(w)->GetStationMiddle(st);
2102}

Callers 1

GetStationMiddleMethod · 0.85

Calls 1

GetStationMiddleMethod · 0.45

Tested by

no test coverage detected