summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-01-30 15:29:35 +0000
committeralberth <alberth@openttd.org>2010-01-30 15:29:35 +0000
commit815eede0be2fda9b3ab1fb312bd9e5e1e407894a (patch)
tree87e6dbefd784130b1a157bc35fff5018b53528de /src
parentcdc6f5ddc14a866b68ef74bdde590750ea7afbc2 (diff)
downloadopenttd-815eede0be2fda9b3ab1fb312bd9e5e1e407894a.tar.xz
(svn r18962) -Fix (r18958, r18961): Code-style, use this explicitly.
Diffstat (limited to 'src')
-rw-r--r--src/smallmap_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 69e230299..1d9767efe 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -553,7 +553,7 @@ class SmallMapWindow : public Window {
if (v->vehstatus & (VS_HIDDEN | VS_UNCLICKABLE)) continue;
/* Remap into flat coordinates. */
- Point pt = RemapTile(v->x_pos / TILE_SIZE, v->y_pos / TILE_SIZE);
+ Point pt = this->RemapTile(v->x_pos / TILE_SIZE, v->y_pos / TILE_SIZE);
int y = pt.y - dpi->top;
if (!IsInsideMM(y, 0, dpi->height)) continue; // y is out of bounds.
@@ -589,7 +589,7 @@ class SmallMapWindow : public Window {
const Town *t;
FOR_ALL_TOWNS(t) {
/* Remap the town coordinate */
- Point pt = RemapTile(TileX(t->xy), TileY(t->xy));
+ Point pt = this->RemapTile(TileX(t->xy), TileY(t->xy));
int x = pt.x - this->subscroll - (t->sign.width_small >> 1);
int y = pt.y;
@@ -696,7 +696,7 @@ class SmallMapWindow : public Window {
/* Which tile is displayed at (dpi->left, dpi->top)? */
int dx;
- Point tile = PixelToTile(dpi->left, dpi->top, &dx);
+ Point tile = this->PixelToTile(dpi->left, dpi->top, &dx);
int tile_x = this->scroll_x / TILE_SIZE + tile.x;
int tile_y = this->scroll_y / TILE_SIZE + tile.y;
@@ -1032,7 +1032,7 @@ public:
/* While tile is at (delta.x, delta.y)? */
int sub;
- Point pt = PixelToTile(delta.x, delta.y, &sub);
+ Point pt = this->PixelToTile(delta.x, delta.y, &sub);
int x = this->scroll_x + pt.x * TILE_SIZE;
int y = this->scroll_y + pt.y * TILE_SIZE;