mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-13 09:39:10 +00:00
(svn r17835) -Codechange: constify few variables
This commit is contained in:
@@ -629,7 +629,7 @@ class SmallMapWindow : public Window {
|
|||||||
* @param dpi the part of the smallmap to be drawn into
|
* @param dpi the part of the smallmap to be drawn into
|
||||||
* @param blitter current blitter
|
* @param blitter current blitter
|
||||||
*/
|
*/
|
||||||
void DrawVehicles(DrawPixelInfo *dpi, Blitter *blitter)
|
void DrawVehicles(const DrawPixelInfo *dpi, Blitter *blitter)
|
||||||
{
|
{
|
||||||
const Vehicle *v;
|
const Vehicle *v;
|
||||||
FOR_ALL_VEHICLES(v) {
|
FOR_ALL_VEHICLES(v) {
|
||||||
@@ -678,7 +678,7 @@ class SmallMapWindow : public Window {
|
|||||||
* Adds town names to the smallmap.
|
* Adds town names to the smallmap.
|
||||||
* @param dpi the part of the smallmap to be drawn into
|
* @param dpi the part of the smallmap to be drawn into
|
||||||
*/
|
*/
|
||||||
void DrawTowns(DrawPixelInfo *dpi)
|
void DrawTowns(const DrawPixelInfo *dpi)
|
||||||
{
|
{
|
||||||
const Town *t;
|
const Town *t;
|
||||||
FOR_ALL_TOWNS(t) {
|
FOR_ALL_TOWNS(t) {
|
||||||
@@ -862,6 +862,7 @@ class SmallMapWindow : public Window {
|
|||||||
/* Draw town names */
|
/* Draw town names */
|
||||||
if (this->show_towns) this->DrawTowns(dpi);
|
if (this->show_towns) this->DrawTowns(dpi);
|
||||||
|
|
||||||
|
/* Draw map indicators */
|
||||||
this->DrawMapIndicators();
|
this->DrawMapIndicators();
|
||||||
|
|
||||||
_cur_dpi = old_dpi;
|
_cur_dpi = old_dpi;
|
||||||
|
Reference in New Issue
Block a user