From 3a24531ba755511bec09546385d2aaddb6755e41 Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Sun, 22 Dec 2013 22:53:26 -0800 Subject: [PATCH] - more code cleanup based on cppcheck results and valgrind - added -h option to build-mg.sh to show parameter usage. --- build-mg.sh | 14 +- source/glest_game/game/game.cpp | 6 +- source/glest_game/graphics/renderer.cpp | 15 +- source/glest_game/graphics/renderer.h | 2 +- source/glest_game/world/minimap.cpp | 10 +- source/glest_game/world/minimap.h | 2 +- .../include/graphics/gl/texture_gl.h | 2 +- source/shared_lib/include/graphics/pixmap.h | 9 +- source/shared_lib/include/graphics/texture.h | 11 +- .../sources/graphics/gl/texture_gl.cpp | 4 +- source/shared_lib/sources/graphics/model.cpp | 2 +- source/shared_lib/sources/graphics/pixmap.cpp | 137 ++++++++---------- source/shared_lib/sources/miniz/miniz.c | 9 +- 13 files changed, 104 insertions(+), 119 deletions(-) diff --git a/build-mg.sh b/build-mg.sh index cfe8a6b7a..54e209f49 100755 --- a/build-mg.sh +++ b/build-mg.sh @@ -18,7 +18,7 @@ CMAKE_ONLY=0 MAKE_ONLY=0 CLANG_FORCED=0 -while getopts "c:m:n:f:" option; do +while getopts "c:m:n:f:h" option; do case "${option}" in c) CPU_COUNT=${OPTARG} @@ -37,6 +37,18 @@ while getopts "c:m:n:f:" option; do CLANG_FORCED=${OPTARG} # echo "${option} value: ${OPTARG}" ;; + h) + echo "Usage: $0