(svn r16155) -Codechange: remove MarkTileDirty, use MarkTileDirtyByTile instead
This commit is contained in:
@@ -25,13 +25,6 @@ bool CheckTileOwnership(TileIndex tile);
|
|||||||
void InitializeLandscapeVariables(bool only_constants);
|
void InitializeLandscapeVariables(bool only_constants);
|
||||||
|
|
||||||
/* misc functions */
|
/* misc functions */
|
||||||
/**
|
|
||||||
* Mark a tile given by its coordinate dirty for repaint.
|
|
||||||
*
|
|
||||||
* @ingroup dirty
|
|
||||||
*/
|
|
||||||
void MarkTileDirty(int x, int y);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mark a tile given by its index dirty for repaint.
|
* Mark a tile given by its index dirty for repaint.
|
||||||
*
|
*
|
||||||
|
@@ -675,7 +675,7 @@ struct BuildRailToolbarWindow : Window {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MarkTileDirty(_thd.pos.x, _thd.pos.y); // redraw tile selection
|
MarkTileDirtyByTile(TileVirtXY(_thd.pos.x, _thd.pos.y)); // redraw tile selection
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -507,7 +507,7 @@ struct BuildRoadToolbarWindow : Window {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MarkTileDirty(_thd.pos.x, _thd.pos.y); // redraw tile selection
|
MarkTileDirtyByTile(TileVirtXY(_thd.pos.x, _thd.pos.y)); // redraw tile selection
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1709,18 +1709,6 @@ void MarkTileDirtyByTile(TileIndex tile)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MarkTileDirty(int x, int y)
|
|
||||||
{
|
|
||||||
Point pt = RemapCoords(x, y, GetTileZ(TileVirtXY(x, y)));
|
|
||||||
|
|
||||||
MarkAllViewportsDirty(
|
|
||||||
pt.x - 31,
|
|
||||||
pt.y - 122,
|
|
||||||
pt.x - 31 + 67,
|
|
||||||
pt.y - 122 + 154
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marks the selected tiles as dirty.
|
* Marks the selected tiles as dirty.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user