diff options
author | smatz <smatz@openttd.org> | 2009-09-21 18:16:00 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-09-21 18:16:00 +0000 |
commit | 15511678e32880001aba50c9230be5fb141dc0ad (patch) | |
tree | 5ae1112911f6d6d851c99e05fbe0aaf030e0864e | |
parent | 60a13f49bddb11419416066c8f85268a47522770 (diff) | |
download | openttd-15511678e32880001aba50c9230be5fb141dc0ad.tar.xz |
(svn r17603) -Codechange: since now, towns are 'founded' instead of 'built'
-rw-r--r-- | src/callback_table.cpp | 4 | ||||
-rw-r--r-- | src/command.cpp | 4 | ||||
-rw-r--r-- | src/command_type.h | 2 | ||||
-rw-r--r-- | src/gui.h | 2 | ||||
-rw-r--r-- | src/industry_gui.cpp | 4 | ||||
-rw-r--r-- | src/lang/english.txt | 8 | ||||
-rw-r--r-- | src/toolbar_gui.cpp | 2 | ||||
-rw-r--r-- | src/town_cmd.cpp | 2 | ||||
-rw-r--r-- | src/town_gui.cpp | 8 |
9 files changed, 18 insertions, 18 deletions
diff --git a/src/callback_table.cpp b/src/callback_table.cpp index 0889e7d20..945a0e426 100644 --- a/src/callback_table.cpp +++ b/src/callback_table.cpp @@ -37,7 +37,7 @@ CommandCallback CcCloneVehicle; CommandCallback CcPlaySound10; CommandCallback CcPlaceSign; CommandCallback CcTerraform; -CommandCallback CcBuildTown; +CommandCallback CcFoundTown; CommandCallback CcGiveMoney; /* rail_gui.cpp */ @@ -77,7 +77,7 @@ CommandCallback * const _callback_table[] = { /* 0x06 */ CcBuildLoco, /* 0x07 */ CcBuildRoadVeh, /* 0x08 */ CcBuildShip, - /* 0x09 */ CcBuildTown, + /* 0x09 */ CcFoundTown, /* 0x0A */ CcBuildRoadTunnel, /* 0x0B */ CcBuildRailTunnel, /* 0x0C */ CcBuildWagon, diff --git a/src/command.cpp b/src/command.cpp index d2cc9aca7..f44395662 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -146,7 +146,7 @@ DEF_COMMAND(CmdBuyShareInCompany); DEF_COMMAND(CmdSellShareInCompany); DEF_COMMAND(CmdBuyCompany); -DEF_COMMAND(CmdBuildTown); +DEF_COMMAND(CmdFoundTown); DEF_COMMAND(CmdRenameTown); DEF_COMMAND(CmdDoTownAction); @@ -296,7 +296,7 @@ static const Command _command_proc_table[] = { {CmdSellShareInCompany, 0}, // CMD_SELL_SHARE_IN_COMPANY {CmdBuyCompany, 0}, // CMD_BUY_COMANY - {CmdBuildTown, CMD_OFFLINE}, // CMD_BUILD_TOWN + {CmdFoundTown, CMD_OFFLINE}, // CMD_FOUND_TOWN {CmdRenameTown, CMD_SERVER}, // CMD_RENAME_TOWN {CmdDoTownAction, 0}, // CMD_DO_TOWN_ACTION diff --git a/src/command_type.h b/src/command_type.h index 5d3cc51f1..8ac3786a1 100644 --- a/src/command_type.h +++ b/src/command_type.h @@ -242,7 +242,7 @@ enum { CMD_SELL_SHARE_IN_COMPANY, ///< sell a share from a company CMD_BUY_COMPANY, ///< buy a company which is bankrupt - CMD_BUILD_TOWN, ///< build a town + CMD_FOUND_TOWN, ///< found a town CMD_RENAME_TOWN, ///< rename a town CMD_DO_TOWN_ACTION, ///< do a action from the town detail window (like advertises or bribe) @@ -80,7 +80,7 @@ extern const TextColour _fios_colours[]; void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type); void ShowBuildIndustryWindow(); -void ShowBuildTownWindow(); +void ShowFoundTownWindow(); void ShowMusicWindow(); diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 29066ee4b..a8b54c1fd 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -343,7 +343,7 @@ public: this->HandleButtonClick(DPIW_FUND_WIDGET); if (Town::GetNumItems() == 0) { - ShowErrorMessage(STR_ERROR_MUST_BUILD_TOWN_FIRST, STR_ERROR_CAN_T_GENERATE_INDUSTRIES, 0, 0); + ShowErrorMessage(STR_ERROR_MUST_FOUND_TOWN_FIRST, STR_ERROR_CAN_T_GENERATE_INDUSTRIES, 0, 0); } else { extern void GenerateIndustries(); _generating_world = true; @@ -378,7 +378,7 @@ public: /* Show error if no town exists at all */ if (Town::GetNumItems() == 0) { SetDParam(0, indsp->name); - ShowErrorMessage(STR_ERROR_MUST_BUILD_TOWN_FIRST, STR_ERROR_CAN_T_BUILD_HERE, pt.x, pt.y); + ShowErrorMessage(STR_ERROR_MUST_FOUND_TOWN_FIRST, STR_ERROR_CAN_T_BUILD_HERE, pt.x, pt.y); return; } diff --git a/src/lang/english.txt b/src/lang/english.txt index f2761f7de..3cd7ed36e 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -2026,9 +2026,9 @@ STR_RESET_LANDSCAPE_CONFIRMATION_TEXT :{WHITE}Are you # Town generation window (SE) STR_FOUND_TOWN_CAPTION :{WHITE}Town Generation STR_FOUND_TOWN_NEW_TOWN_BUTTON :{BLACK}New Town -STR_FOUND_TOWN_NEW_TOWN_TOOLTIP :{BLACK}Construct new town +STR_FOUND_TOWN_NEW_TOWN_TOOLTIP :{BLACK}Found new town STR_FOUND_TOWN_RANDOM_TOWN_BUTTON :{BLACK}Random Town -STR_FOUND_TOWN_RANDOM_TOWN_TOOLTIP :{BLACK}Build town in random location +STR_FOUND_TOWN_RANDOM_TOWN_TOOLTIP :{BLACK}Found town in random location STR_FOUND_TOWN_MANY_RANDOM_TOWNS :{BLACK}Many random towns STR_FOUND_TOWN_RANDOM_TOWNS_TOOLTIP :{BLACK}Cover the map with randomly placed towns @@ -3279,7 +3279,7 @@ STR_ERROR_PROTECTED :{WHITE}This com # Town related errors STR_ERROR_CAN_T_GENERATE_TOWN :{WHITE}Can't build any towns STR_ERROR_CAN_T_RENAME_TOWN :{WHITE}Can't rename town... -STR_ERROR_CAN_T_BUILD_TOWN_HERE :{WHITE}Can't build town here... +STR_ERROR_CAN_T_FOUND_TOWN_HERE :{WHITE}Can't found town here... STR_ERROR_TOO_CLOSE_TO_EDGE_OF_MAP_SUB :{WHITE}... too close to edge of map STR_ERROR_TOO_CLOSE_TO_ANOTHER_TOWN :{WHITE}... too close to another town STR_ERROR_TOO_MANY_TOWNS :{WHITE}... too many towns @@ -3292,7 +3292,7 @@ STR_ERROR_CAN_T_GENERATE_INDUSTRIES :{WHITE}Can't ge STR_ERROR_CAN_T_BUILD_HERE :{WHITE}Can't build {STRING} here... STR_ERROR_CAN_T_CONSTRUCT_THIS_INDUSTRY :{WHITE}Can't construct this industry type here... STR_ERROR_INDUSTRY_TOO_CLOSE :{WHITE}... too close to another industry -STR_ERROR_MUST_BUILD_TOWN_FIRST :{WHITE}... must build town first +STR_ERROR_MUST_FOUND_TOWN_FIRST :{WHITE}... must found town first STR_ERROR_ONLY_ONE_ALLOWED_PER_TOWN :{WHITE}... only one allowed per town STR_ERROR_CAN_ONLY_BE_BUILT_IN_TOWNS_WITH_POPULATION_OF_1200 :{WHITE}... can only be built in towns with a population of at least 1200 STR_ERROR_CAN_ONLY_BE_BUILT_IN_RAINFOREST :{WHITE}... can only be built in rainforest areas diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index 8814e97e6..4d4556e9d 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -827,7 +827,7 @@ static void ToolbarScenGenTown(Window *w) { w->HandleButtonClick(TBSE_TOWNGENERATE); SndPlayFx(SND_15_BEEP); - ShowBuildTownWindow(); + ShowFoundTownWindow(); } static void ToolbarScenGenIndustry(Window *w) diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 6191f4c41..db158fe2e 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1596,7 +1596,7 @@ static CommandCost TownCanBePlacedHere(TileIndex tile) * @param text unused * @return the cost of this operation or an error */ -CommandCost CmdBuildTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text) +CommandCost CmdFoundTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text) { /* Only in the scenario editor */ if (_game_mode != GM_EDITOR) return CMD_ERROR; diff --git a/src/town_gui.cpp b/src/town_gui.cpp index f516f9bcf..5b37a9f14 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -840,7 +840,7 @@ void ShowTownDirectory() new TownDirectoryWindow(&_town_directory_desc); } -void CcBuildTown(bool success, TileIndex tile, uint32 p1, uint32 p2) +void CcFoundTown(bool success, TileIndex tile, uint32 p1, uint32 p2) { if (success) { SndPlayTileFx(SND_1F_SPLAT, tile); @@ -1032,12 +1032,12 @@ public: { uint32 townnameparts; if (!GenerateTownName(&townnameparts)) { - ShowErrorMessage(STR_ERROR_TOO_MANY_TOWNS, STR_ERROR_CAN_T_BUILD_TOWN_HERE, 0, 0); + ShowErrorMessage(STR_ERROR_TOO_MANY_TOWNS, STR_ERROR_CAN_T_FOUND_TOWN_HERE, 0, 0); return; } DoCommandP(tile, this->town_size | this->city << 2 | this->town_layout << 3, townnameparts, - CMD_BUILD_TOWN | CMD_MSG(STR_ERROR_CAN_T_BUILD_TOWN_HERE), CcBuildTown); + CMD_FOUND_TOWN | CMD_MSG(STR_ERROR_CAN_T_FOUND_TOWN_HERE), CcFoundTown); } virtual void OnPlaceObjectAbort() @@ -1054,7 +1054,7 @@ static const WindowDesc _found_town_desc( NULL, _nested_found_town_widgets, lengthof(_nested_found_town_widgets) ); -void ShowBuildTownWindow() +void ShowFoundTownWindow() { if (_game_mode != GM_EDITOR && !Company::IsValidID(_local_company)) return; AllocateWindowDescFront<FoundTownWindow>(&_found_town_desc, 0); |