diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-12-01 00:17:05 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-12-16 22:28:32 +0100 |
commit | 2e39637db226f1326da7c2f0814b2dbb320191a1 (patch) | |
tree | 430e869f69cb0a7bf99be9fc14c1087be73ed795 /src/road_cmd.h | |
parent | 41fa16f3254ffa9f44b85d6570a2293e8438b427 (diff) | |
download | openttd-2e39637db226f1326da7c2f0814b2dbb320191a1.tar.xz |
Codechange: Don't use a global for the 'not enough cash' message.
Diffstat (limited to 'src/road_cmd.h')
-rw-r--r-- | src/road_cmd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.h b/src/road_cmd.h index 35903dd7a..82f09d2fa 100644 --- a/src/road_cmd.h +++ b/src/road_cmd.h @@ -18,7 +18,7 @@ void DrawRoadDepotSprite(int x, int y, DiagDirection dir, RoadType rt); void UpdateNearestTownForRoadTiles(bool invalidate); CommandCost CmdBuildLongRoad(DoCommandFlag flags, TileIndex start_tile, TileIndex end_tile, RoadType rt, Axis axis, DisallowedRoadDirections drd, bool start_half, bool end_half, bool is_ai); -CommandCost CmdRemoveLongRoad(DoCommandFlag flags, TileIndex start_tile, TileIndex end_tile, RoadType rt, Axis axis, bool start_half, bool end_half); +std::tuple<CommandCost, Money> CmdRemoveLongRoad(DoCommandFlag flags, TileIndex start_tile, TileIndex end_tile, RoadType rt, Axis axis, bool start_half, bool end_half); CommandCost CmdBuildRoad(DoCommandFlag flags, TileIndex tile, RoadBits pieces, RoadType rt, DisallowedRoadDirections toggle_drd, TownID town_id); CommandCost CmdBuildRoadDepot(DoCommandFlag flags, TileIndex tile, RoadType rt, DiagDirection dir); CommandCost CmdConvertRoad(DoCommandFlag flags, TileIndex tile, TileIndex area_start, RoadType to_type); |