(svn r14337) -Codechange: use CmdRename* and CMD_RENAME_* for vehicle, president and company renaming commands, too

This commit is contained in:
smatz
2008-09-15 22:58:41 +00:00
parent a20dae0df1
commit 5f4ff33ce3
9 changed files with 19 additions and 19 deletions

View File

@@ -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);
}
}