summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-08 08:50:20 +0000
committerrubidium <rubidium@openttd.org>2009-07-08 08:50:20 +0000
commit3fb1506d6d71fcc124779f7f4a7ede68d9970636 (patch)
tree0136a9522a05a038181cc31ec9158339f34adec0 /src/smallmap_gui.cpp
parent8275a98e1f2e5adc770dc68492927416ddbb6fe6 (diff)
downloadopenttd-3fb1506d6d71fcc124779f7f4a7ede68d9970636.tar.xz
(svn r16765) -Codechange: give ViewportSign's width_1 and width_2 more self explaining names
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 3d0ab2ecb..6f4b1da80 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -791,17 +791,17 @@ public:
this->RemapX(TileX(t->xy)),
this->RemapY(TileY(t->xy)),
0);
- x = pt.x - this->subscroll + 3 - (t->sign.width_2 >> 1);
+ x = pt.x - this->subscroll + 3 - (t->sign.width_small >> 1);
y = pt.y;
/* Check if the town sign is within bounds */
- if (x + t->sign.width_2 > dpi->left &&
+ if (x + t->sign.width_small > dpi->left &&
x < dpi->left + dpi->width &&
y + 6 > dpi->top &&
y < dpi->top + dpi->height) {
/* And draw it. */
SetDParam(0, t->index);
- DrawString(x, x + t->sign.width_2, y, STR_SMALLMAP_TOWN);
+ DrawString(x, x + t->sign.width_small, y, STR_SMALLMAP_TOWN);
}
}
}