From 1678055eddba65e87bdb815e6947ffb503da5631 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Fri, 29 Jan 2010 21:34:09 +0000 Subject: [PATCH] Fix build warnings This was SVN commit r7294. --- source/simulation2/components/CCmpPathfinder.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/simulation2/components/CCmpPathfinder.cpp b/source/simulation2/components/CCmpPathfinder.cpp index 660277c68b..6c7055f2a7 100644 --- a/source/simulation2/components/CCmpPathfinder.cpp +++ b/source/simulation2/components/CCmpPathfinder.cpp @@ -101,6 +101,7 @@ struct Square */ class PathfinderOverlay : public TerrainOverlay { + NONCOPYABLE(PathfinderOverlay); public: CCmpPathfinder& m_Pathfinder; @@ -340,7 +341,7 @@ void PathfinderOverlay::EndRender() void PathfinderOverlay::ProcessTile(ssize_t i, ssize_t j) { if (m_Pathfinder.m_Grid && m_Pathfinder.m_Grid->get(i, j)) - RenderTile(CColor(1, 0, 0, 0.6), false); + RenderTile(CColor(1, 0, 0, 0.6f), false); if (m_Pathfinder.m_DebugGrid) { @@ -349,9 +350,9 @@ void PathfinderOverlay::ProcessTile(ssize_t i, ssize_t j) float c = clamp((n.cost/256.f) / 32.f, 0.f, 1.f); if (n.status == PathfindTile::STATUS_OPEN) - RenderTile(CColor(1, 1, c, 0.6), false); + RenderTile(CColor(1, 1, c, 0.6f), false); else if (n.status == PathfindTile::STATUS_CLOSED) - RenderTile(CColor(0, 1, c, 0.6), false); + RenderTile(CColor(0, 1, c, 0.6f), false); } }