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

Function CcMoveWaypointName

src/waypoint_cmd.cpp:658–665  ·  view source on GitHub ↗

* Callback function that is called after a name is moved * @param result of the operation * @param waypoint_id ID of the changed waypoint */

Source from the content-addressed store, hash-verified

656 * @param waypoint_id ID of the changed waypoint
657 */
658void CcMoveWaypointName(Commands, const CommandCost &result, StationID waypoint_id)
659{
660 if (result.Failed()) return;
661
662 ResetObjectToPlace();
663 Waypoint *wp = Waypoint::Get(waypoint_id);
664 SetViewportCatchmentWaypoint(wp, false);
665}

Callers

nothing calls this directly

Calls 3

ResetObjectToPlaceFunction · 0.85
FailedMethod · 0.80

Tested by

no test coverage detected