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/town_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/town_cmd.h')
-rw-r--r-- | src/town_cmd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_cmd.h b/src/town_cmd.h index e98fa571e..74af1e10e 100644 --- a/src/town_cmd.h +++ b/src/town_cmd.h @@ -16,7 +16,7 @@ enum TownEffect : byte; -std::tuple<CommandCost, TownID> CmdFoundTown(DoCommandFlag flags, TileIndex tile, TownSize size, bool city, TownLayout layout, bool random_location, uint32 townnameparts, const std::string &text); +std::tuple<CommandCost, Money, TownID> CmdFoundTown(DoCommandFlag flags, TileIndex tile, TownSize size, bool city, TownLayout layout, bool random_location, uint32 townnameparts, const std::string &text); CommandCost CmdRenameTown(DoCommandFlag flags, TownID town_id, const std::string &text); CommandCost CmdDoTownAction(DoCommandFlag flags, TownID town_id, uint8 action); CommandCost CmdTownGrowthRate(DoCommandFlag flags, TownID town_id, uint16 growth_rate); @@ -37,6 +37,6 @@ DEF_CMD_TRAIT(CMD_EXPAND_TOWN, CmdExpandTown, CMD_DEITY, DEF_CMD_TRAIT(CMD_DELETE_TOWN, CmdDeleteTown, CMD_OFFLINE, CMDT_LANDSCAPE_CONSTRUCTION) CommandCallback CcFoundTown; -void CcFoundRandomTown(Commands cmd, const CommandCost &result, TownID town_id); +void CcFoundRandomTown(Commands cmd, const CommandCost &result, Money, TownID town_id); #endif /* TOWN_CMD_H */ |