Changeset - r11760:5811417eb483
[Not reviewed]
master
0 4 0
smatz - 15 years ago 2009-04-26 10:21:50
smatz@openttd.org
(svn r16155) -Codechange: remove MarkTileDirty, use MarkTileDirtyByTile instead
4 files changed with 2 insertions and 21 deletions:
0 comments (0 inline, 0 general)
src/functions.h
Show inline comments
 
@@ -26,13 +26,6 @@ void InitializeLandscapeVariables(bool o
 

	
 
/* 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.
 
 *
 
 * @ingroup dirty
src/rail_gui.cpp
Show inline comments
 
@@ -675,7 +675,7 @@ struct BuildRailToolbarWindow : Window {
 
				break;
 
			}
 
		}
 
		MarkTileDirty(_thd.pos.x, _thd.pos.y); // redraw tile selection
 
		MarkTileDirtyByTile(TileVirtXY(_thd.pos.x, _thd.pos.y)); // redraw tile selection
 
		return state;
 
	}
 

	
src/road_gui.cpp
Show inline comments
 
@@ -507,7 +507,7 @@ struct BuildRoadToolbarWindow : Window {
 
				break;
 
			}
 
		}
 
		MarkTileDirty(_thd.pos.x, _thd.pos.y); // redraw tile selection
 
		MarkTileDirtyByTile(TileVirtXY(_thd.pos.x, _thd.pos.y)); // redraw tile selection
 
		return state;
 
	}
 

	
src/viewport.cpp
Show inline comments
 
@@ -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.
 
 *
0 comments (0 inline, 0 general)