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

Function CcPlaceSign

src/signs_cmd.cpp:133–139  ·  view source on GitHub ↗

* Callback function that is called after a sign is placed * @param result of the operation * @param new_sign ID of the placed sign. */

Source from the content-addressed store, hash-verified

131 * @param new_sign ID of the placed sign.
132 */
133void CcPlaceSign(Commands, const CommandCost &result, SignID new_sign)
134{
135 if (result.Failed()) return;
136
137 ShowRenameSignWindow(Sign::Get(new_sign));
138 ResetObjectToPlace();
139}
140
141/**
142 *

Callers

nothing calls this directly

Calls 3

ShowRenameSignWindowFunction · 0.85
ResetObjectToPlaceFunction · 0.85
FailedMethod · 0.80

Tested by

no test coverage detected