From 5e618e152666da9e7a9729d14224df9f9469d08c Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sat, 29 Jan 2011 21:14:49 +0000 Subject: [PATCH] Remove redundant bounds check This was SVN commit r8875. --- .../tools/atlas/GameInterface/Handlers/TerrainHandlers.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/tools/atlas/GameInterface/Handlers/TerrainHandlers.cpp b/source/tools/atlas/GameInterface/Handlers/TerrainHandlers.cpp index 238e73bd7d..4da5f518e3 100644 --- a/source/tools/atlas/GameInterface/Handlers/TerrainHandlers.cpp +++ b/source/tools/atlas/GameInterface/Handlers/TerrainHandlers.cpp @@ -155,13 +155,9 @@ BEGIN_COMMAND(PaintTerrain) void UpdatePriority(ssize_t x, ssize_t y, CTerrainTextureEntry* tex, ssize_t priorityScale, ssize_t& priority) { - // Ignore out-of-bounds tiles - if (size_t(x) >= size_t(m_VertsPerSide-1) || size_t(y) >= size_t(m_VertsPerSide-1)) - return; - CMiniPatch* tile = m_Terrain->GetTile(x, y); if (!tile) - return; + return; // tile was out-of-bounds // If this tile matches the current texture, we just want to match its // priority; otherwise we want to exceed its priority