Ejemplo n.º 1
0
	virtual void EndRender()
	{
		if (m_Pathfinder.m_DebugPath)
		{
			std::vector<ICmpPathfinder::Waypoint>& wp = m_Pathfinder.m_DebugPath->m_Waypoints;
			for (size_t n = 0; n < wp.size(); ++n)
			{
				u16 i, j;
				m_Pathfinder.NearestTile(wp[n].x, wp[n].z, i, j);
				RenderTileOutline(CColor(1, 1, 1, 1), 2, false, i, j);
			}
		}
	}
Ejemplo n.º 2
0
void TerrainOverlay::RenderTileOutline(const CColor& colour, int line_width, bool draw_hidden)
{
	RenderTileOutline(colour, line_width, draw_hidden, m_i, m_j);
}