diff options
author | yexo <yexo@openttd.org> | 2010-08-02 21:25:17 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-08-02 21:25:17 +0000 |
commit | 5ae4e27446c6d20855f58a3845e8b3c52fb74aa4 (patch) | |
tree | 345f497fb6d66874e4640efda1fee0fdb79eae6e /src/town_gui.cpp | |
parent | c7516f230f65aa8230894544f09f9fc1cb4f1b92 (diff) | |
download | openttd-5ae4e27446c6d20855f58a3845e8b3c52fb74aa4.tar.xz |
(svn r20325) -Fix (r20322): surround variable declarations in a switch-block with {}
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index e1581cb70..f9e70cc6d 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -451,7 +451,7 @@ public: ShowQueryString(STR_TOWN_NAME, STR_TOWN_VIEW_RENAME_TOWN_BUTTON, MAX_LENGTH_TOWN_NAME_BYTES, MAX_LENGTH_TOWN_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT); break; - case TVW_EXPAND: // expand town - only available on Scenario editor + case TVW_EXPAND: { // expand town - only available on Scenario editor /* Warn the user if towns are not allowed to build roads, but do this only once per OpenTTD run. */ static bool _warn_town_no_roads = false; @@ -462,6 +462,7 @@ public: DoCommandP(0, this->window_number, 0, CMD_EXPAND_TOWN | CMD_MSG(STR_ERROR_CAN_T_EXPAND_TOWN)); break; + } case TVW_DELETE: // delete town - only available on Scenario editor DoCommandP(0, this->window_number, 0, CMD_DELETE_TOWN | CMD_MSG(STR_ERROR_TOWN_CAN_T_DELETE)); |