summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-11-25 16:26:25 +0000
committerfrosch <frosch@openttd.org>2009-11-25 16:26:25 +0000
commit93ef16c5200e1ecc82c4ab6437600485c290c937 (patch)
tree21b2c9a05853f5ffaa2639d186f01988087b19c1
parent6befa88d82a23e76f9c44e79884915d3b1e57660 (diff)
downloadopenttd-93ef16c5200e1ecc82c4ab6437600485c290c937.tar.xz
(svn r18286) -Fix (r18280): Number of platforms and platform length start with 1.
-rw-r--r--src/rail_gui.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index c6796b4b9..932d4ea61 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -920,8 +920,7 @@ enum BuildRailStationWidgets {
BRSW_PLATFORM_DIR_X,
BRSW_PLATFORM_DIR_Y,
- BRSW_PLATFORM_NUM_BEGIN,
- BRSW_PLATFORM_NUM_1 = BRSW_PLATFORM_NUM_BEGIN,
+ BRSW_PLATFORM_NUM_1,
BRSW_PLATFORM_NUM_2,
BRSW_PLATFORM_NUM_3,
BRSW_PLATFORM_NUM_4,
@@ -929,8 +928,7 @@ enum BuildRailStationWidgets {
BRSW_PLATFORM_NUM_6,
BRSW_PLATFORM_NUM_7,
- BRSW_PLATFORM_LEN_BEGIN,
- BRSW_PLATFORM_LEN_1 = BRSW_PLATFORM_LEN_BEGIN,
+ BRSW_PLATFORM_LEN_1,
BRSW_PLATFORM_LEN_2,
BRSW_PLATFORM_LEN_3,
BRSW_PLATFORM_LEN_4,
@@ -945,7 +943,10 @@ enum BuildRailStationWidgets {
BRSW_NEWST_DROPDOWN,
BRSW_NEWST_LIST,
- BRSW_NEWST_SCROLL
+ BRSW_NEWST_SCROLL,
+
+ BRSW_PLATFORM_NUM_BEGIN = BRSW_PLATFORM_NUM_1 - 1,
+ BRSW_PLATFORM_LEN_BEGIN = BRSW_PLATFORM_LEN_1 - 1,
};
struct BuildRailStationWindow : public PickerWindowBase {