From d1f9fbc4a77c5b4adb91e7570951b2a07ed38955 Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Sun, 15 Dec 2013 09:19:24 -0800 Subject: [PATCH] - cleanup warnings from clang --- source/glest_game/graphics/renderer.cpp | 2 +- source/shared_lib/sources/map/map_preview.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/graphics/renderer.cpp b/source/glest_game/graphics/renderer.cpp index 62772e18..e04ee0f6 100644 --- a/source/glest_game/graphics/renderer.cpp +++ b/source/glest_game/graphics/renderer.cpp @@ -4258,7 +4258,7 @@ void Renderer::renderSurface(const int renderFps) { int lastTex=-1; //int currTex=-1; - Quad2i snapshotOfvisibleQuad = visibleQuad; + //Quad2i snapshotOfvisibleQuad = visibleQuad; //bool useVertexArrayRendering = getVBOSupported(); //bool useVertexArrayRendering = false; diff --git a/source/shared_lib/sources/map/map_preview.cpp b/source/shared_lib/sources/map/map_preview.cpp index 3cd5429c..066fa3e5 100644 --- a/source/shared_lib/sources/map/map_preview.cpp +++ b/source/shared_lib/sources/map/map_preview.cpp @@ -922,7 +922,7 @@ void MapPreview::saveToFile(const string &path) { strncpy(header.title, title.c_str(), MAX_TITLE_LENGTH); strncpy(header.author, author.c_str(), MAX_AUTHOR_LENGTH); strncpy(header.version2.short_desc, desc.c_str(), MAX_DESCRIPTION_LENGTH_VERSION2); - header.version2.short_desc[MAX_DESCRIPTION_LENGTH_VERSION2] = 0; + header.version2.short_desc[MAX_DESCRIPTION_LENGTH_VERSION2-1] = 0; header.version2.magic= 0x01020304; header.version2.cliffLevel= cliffLevel; header.version2.cameraHeight= cameraHeight;