diff options
author | smatz <smatz@openttd.org> | 2008-09-15 22:58:41 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-15 22:58:41 +0000 |
commit | 5f4ff33ce340fc71e17abbdede06226dd4e56a54 (patch) | |
tree | 45c367908e8900a20e722b7841e5eaf20df8cafd /src/misc_cmd.cpp | |
parent | a20dae0df1614f8701c1ac3a20a64fe6fd4fda5d (diff) | |
download | openttd-5f4ff33ce340fc71e17abbdede06226dd4e56a54.tar.xz |
(svn r14337) -Codechange: use CmdRename* and CMD_RENAME_* for vehicle, president and company renaming commands, too
Diffstat (limited to 'src/misc_cmd.cpp')
-rw-r--r-- | src/misc_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp index 84287bc1a..084949a32 100644 --- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -222,7 +222,7 @@ static bool IsUniqueCompanyName(const char *name) * @param p1 unused * @param p2 unused */ -CommandCost CmdChangeCompanyName(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) +CommandCost CmdRenameCompany(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) { bool reset = StrEmpty(_cmd_text); @@ -261,7 +261,7 @@ static bool IsUniquePresidentName(const char *name) * @param p1 unused * @param p2 unused */ -CommandCost CmdChangePresidentName(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) +CommandCost CmdRenamePresident(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) { bool reset = StrEmpty(_cmd_text); @@ -284,7 +284,7 @@ CommandCost CmdChangePresidentName(TileIndex tile, uint32 flags, uint32 p1, uint snprintf(buf, lengthof(buf), "%s Transport", _cmd_text); _cmd_text = buf; - DoCommand(0, 0, 0, DC_EXEC, CMD_CHANGE_COMPANY_NAME); + DoCommand(0, 0, 0, DC_EXEC, CMD_RENAME_COMPANY); } } |