From c800ab28cc71ccef12ae98c99557f1d5b55de72c Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sat, 12 Jun 2010 18:56:16 +0000 Subject: [PATCH] - bugfixes for incorrect method declaration --- source/glest_game/game/game_camera.h | 10 +++++----- source/glest_game/graphics/renderer.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/glest_game/game/game_camera.h b/source/glest_game/game/game_camera.h index 67e2e42ce..d2a9c0204 100644 --- a/source/glest_game/game/game_camera.h +++ b/source/glest_game/game/game_camera.h @@ -122,11 +122,11 @@ public: void load(const XmlNode *node); void save(XmlNode *node) const; - bool setClampBounds(bool value) { clampBounds = value; } - bool setMaxHeight(float value) { maxHeight = value; } - bool setFov(float value) { fov = value; } - bool setMinVAng(float value) { minVAng = value; } - bool setMaxVAng(float value) { maxVAng = value; } + void setClampBounds(bool value) { clampBounds = value; } + void setMaxHeight(float value) { maxHeight = value; } + void setFov(float value) { fov = value; } + void setMinVAng(float value) { minVAng = value; } + void setMaxVAng(float value) { maxVAng = value; } private: void clampPosXYZ(float x1, float x2, float y1, float y2, float z1, float z2); diff --git a/source/glest_game/graphics/renderer.h b/source/glest_game/graphics/renderer.h index bc35bfb47..71f583928 100644 --- a/source/glest_game/graphics/renderer.h +++ b/source/glest_game/graphics/renderer.h @@ -381,7 +381,7 @@ public: void renderUnitTitles(Font2D *font, Vec3f color); Vec3f computeScreenPosition(const Vec3f &worldPos); - bool setPhotoMode(bool value) { photoMode = value; } + void setPhotoMode(bool value) { photoMode = value; } private: //private misc