From 42919a50f2caf95e5dbdd2de49a310d59ca088dc Mon Sep 17 00:00:00 2001 From: Titus Tscharntke Date: Sat, 27 Mar 2010 16:08:03 +0000 Subject: [PATCH] data is ready for rotation feature some little hotkey changes --- source/glest_game/game/game_camera.cpp | 2 +- source/glest_game/gui/gui.cpp | 5 +---- source/glest_game/menu/menu_state_custom_game.cpp | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/source/glest_game/game/game_camera.cpp b/source/glest_game/game/game_camera.cpp index 751754d69..398cc1443 100644 --- a/source/glest_game/game/game_camera.cpp +++ b/source/glest_game/game/game_camera.cpp @@ -58,7 +58,7 @@ GameCamera::GameCamera() : pos(0.f, defaultHeight, 0.f), maxRenderDistance = Config::getInstance().getFloat("RenderDistanceMax","64"); maxHeight = Config::getInstance().getFloat("CameraMaxDistance","20"); - minHeight = Config::getInstance().getFloat("CameraMinDistance","8"); + minHeight = Config::getInstance().getFloat("CameraMinDistance","7"); maxCameraDist = maxHeight; minCameraDist = minHeight; minVAng = -Config::getInstance().getFloat("CameraMaxYaw","77.5"); diff --git a/source/glest_game/gui/gui.cpp b/source/glest_game/gui/gui.cpp index ec96a87c5..bb17642db 100644 --- a/source/glest_game/gui/gui.cpp +++ b/source/glest_game/gui/gui.cpp @@ -321,7 +321,7 @@ void Gui::hotKey(char key){ //SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s] key = [%c]\n",__FILE__,__FUNCTION__,key); - if(key==' '){ + if(key=='G'){ centerCameraOnSelection(); } else if(key=='I'){ @@ -337,9 +337,6 @@ void Gui::hotKey(char key){ ++selectedBuildingFacing; } } - else { - selectInterestingUnit(iutProducer); - } } else if(key=='D'){ selectInterestingUnit(iutDamaged); diff --git a/source/glest_game/menu/menu_state_custom_game.cpp b/source/glest_game/menu/menu_state_custom_game.cpp index fffc022d4..09fc45396 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -84,8 +84,8 @@ MenuStateCustomGame::MenuStateCustomGame(Program *program, MainMenu *mainMenu, b // @350 ? 300 ? labelFogOfWar.init(350, 290, 100); listBoxFogOfWar.init(350, 260, 100); - listBoxFogOfWar.pushBackItem(lang.get("On")); - listBoxFogOfWar.pushBackItem(lang.get("Off")); + listBoxFogOfWar.pushBackItem(lang.get("Yes")); + listBoxFogOfWar.pushBackItem(lang.get("No")); listBoxFogOfWar.setSelectedItemIndex(0); //tileset listBox