Codechange: Don't access SmallMapWindow method directly from LinkGraphOverlay.
This commit is contained in:

committed by
Peter Nelson

parent
ff5e8bb9a3
commit
f91462f54b
@@ -1888,3 +1888,13 @@ bool ScrollMainWindowTo(int x, int y, int z, bool instant)
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
Point GetSmallMapStationMiddle(const Window *w, const Station *st)
|
||||
{
|
||||
return static_cast<const SmallMapWindow *>(w)->GetStationMiddle(st);
|
||||
}
|
||||
|
Reference in New Issue
Block a user