From cc415526b0e2eec09f49564fea829ecea2ecb4c7 Mon Sep 17 00:00:00 2001 From: Nelsson Huotari Date: Mon, 16 Apr 2018 11:42:55 +0300 Subject: [PATCH] fix texture index +1, better icons --- apps/opencs/view/render/terraintexturemode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/opencs/view/render/terraintexturemode.cpp b/apps/opencs/view/render/terraintexturemode.cpp index 76f018177..1c331f1ec 100644 --- a/apps/opencs/view/render/terraintexturemode.cpp +++ b/apps/opencs/view/render/terraintexturemode.cpp @@ -211,7 +211,7 @@ void CSVRender::TerrainTextureMode::primaryEditPressed(const WorldspaceHitResult hashlocation = mBrushTexture.find(hash); std::string mBrushTextureInt = mBrushTexture.substr (hashlocation+1); - int brushInt = stoi(mBrushTexture.substr (hashlocation+1)); + int brushInt = stoi(mBrushTexture.substr (hashlocation+1))+1; // All indices are offset by +1 if (mBrushShape == 0) mNew[yInCell*landTextureSize+xInCell] = brushInt; if (mBrushShape == 1) @@ -225,7 +225,7 @@ void CSVRender::TerrainTextureMode::primaryEditPressed(const WorldspaceHitResult } } } - float distance = 1; + float distance = 0; if (mBrushShape == 2) { float rf = mBrushSize/2;