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

Method MoveSign

src/station_cmd.cpp:452–461  ·  view source on GitHub ↗

* Move the station main coordinate somewhere else. * @param new_xy new tile location of the sign */

Source from the content-addressed store, hash-verified

450 * @param new_xy new tile location of the sign
451 */
452void Station::MoveSign(TileIndex new_xy)
453{
454 if (this->xy == new_xy) return;
455
456 _station_kdtree.Remove(this->index);
457
458 this->BaseStation::MoveSign(new_xy);
459
460 _station_kdtree.Insert(this->index);
461}
462
463/** Update the virtual coords needed to draw the station sign for all stations. */
464void UpdateAllStationVirtCoords()

Callers 3

AddFacilityMethod · 0.95
UpdateStationSignCoordFunction · 0.45
CmdMoveStationNameFunction · 0.45

Calls 2

RemoveMethod · 0.45
InsertMethod · 0.45

Tested by

no test coverage detected