diff options
author | smatz <smatz@openttd.org> | 2009-10-20 22:17:39 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-10-20 22:17:39 +0000 |
commit | 79906f7ffef0543a10ffa530fbb95431a0fbe838 (patch) | |
tree | 35167063aab9df961dfc70de1846a274a1ef0d55 /src | |
parent | f4e0b3642b36a8d176b6d64d0f13fc2b2428de90 (diff) | |
download | openttd-79906f7ffef0543a10ffa530fbb95431a0fbe838.tar.xz |
(svn r17835) -Codechange: constify few variables
Diffstat (limited to 'src')
-rw-r--r-- | src/smallmap_gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 6eff9ece4..5a5bf6c73 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -629,7 +629,7 @@ class SmallMapWindow : public Window { * @param dpi the part of the smallmap to be drawn into * @param blitter current blitter */ - void DrawVehicles(DrawPixelInfo *dpi, Blitter *blitter) + void DrawVehicles(const DrawPixelInfo *dpi, Blitter *blitter) { const Vehicle *v; FOR_ALL_VEHICLES(v) { @@ -678,7 +678,7 @@ class SmallMapWindow : public Window { * Adds town names to the smallmap. * @param dpi the part of the smallmap to be drawn into */ - void DrawTowns(DrawPixelInfo *dpi) + void DrawTowns(const DrawPixelInfo *dpi) { const Town *t; FOR_ALL_TOWNS(t) { @@ -862,6 +862,7 @@ class SmallMapWindow : public Window { /* Draw town names */ if (this->show_towns) this->DrawTowns(dpi); + /* Draw map indicators */ this->DrawMapIndicators(); _cur_dpi = old_dpi; |