From 3f7daa4884b71dcd35ed8aba9375ac95c115f1ce Mon Sep 17 00:00:00 2001 From: scrawl Date: Wed, 7 Aug 2013 02:58:03 +0200 Subject: [PATCH] Forgot to change initTerrainTextures --- apps/openmw/mwrender/terrain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwrender/terrain.cpp b/apps/openmw/mwrender/terrain.cpp index c3a6b2a73..1b829a2c2 100644 --- a/apps/openmw/mwrender/terrain.cpp +++ b/apps/openmw/mwrender/terrain.cpp @@ -246,9 +246,9 @@ namespace MWRender //cells which may lead to inconsistent results when shading between cells int num = MWBase::Environment::get().getWorld()->getStore().get().getSize(plugin); std::set ltexIndexes; - for ( int y = fromY - 1; y < fromY + size + 1; y++ ) + for ( int y = fromY; y < fromY + size + 1; y++ ) { - for ( int x = fromX - 1; x < fromX + size + 1; x++ ) + for ( int x = fromX - 1; x < fromX + size; x++ ) // NB we wrap X from the other side because Y is reversed { int idx = getLtexIndexAt(cellX, cellY, x, y); // This is a quick hack to prevent the program from trying to fetch textures