summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-06-18 02:38:28 +0000
committerbelugas <belugas@openttd.org>2008-06-18 02:38:28 +0000
commit22c017c0c24d1263c313447e4fc97641c7b198e7 (patch)
tree1859dbe0a7b60865859ad44df711f9076adf4433 /src
parentf16b9dcd2b56268ff6dead2d88311ada0b05a780 (diff)
downloadopenttd-22c017c0c24d1263c313447e4fc97641c7b198e7.tar.xz
(svn r13561) -Codechange: two more enumifications of widgets
Diffstat (limited to 'src')
-rw-r--r--src/toolbar_gui.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index b8d3933cf..5c6489ab4 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -95,7 +95,8 @@ enum ToolbarScenEditorWidgets {
TBSE_FASTFORWARD,
TBSE_SAVESCENARIO = 3,
TBSE_SPACERPANEL,
- TBSE_DATEBACKWARD = 6,
+ TBSE_SEPARATOR,
+ TBSE_DATEBACKWARD,
TBSE_DATEFORWARD,
TBSE_ZOOMIN = 9,
TBSE_ZOOMOUT,
@@ -1154,7 +1155,7 @@ public:
for (uint i = 0, x = 0, j = 0, b = 0; i < this->widget_count; i++) {
switch (i) {
- case 4:
+ case TBSE_SPACERPANEL:
this->widget[i].left = x;
if (this->width < normal_min_width) {
this->widget[i].right = x;
@@ -1166,7 +1167,7 @@ public:
this->widget[i].right = x - 1;
break;
- case 5: {
+ case TBSE_SEPARATOR: {
int offset = x - this->widget[i].left;
this->widget[i + 1].left += offset;
this->widget[i + 1].right += offset;