diff --git a/source/glest_game/graphics/renderer.cpp b/source/glest_game/graphics/renderer.cpp index cba40a5c0..c9e828f7d 100644 --- a/source/glest_game/graphics/renderer.cpp +++ b/source/glest_game/graphics/renderer.cpp @@ -148,8 +148,8 @@ const Vec4f Renderer::defDiffuseColor= Vec4f(1.f, 1.f, 1.f, 1.f); const Vec4f Renderer::defAmbientColor= Vec4f(1.f * ambFactor, 1.f * ambFactor, 1.f * ambFactor, 1.f); const Vec4f Renderer::defColor= Vec4f(1.f, 1.f, 1.f, 1.f); -const float Renderer::maxLightDist= 100.f; -//const float Renderer::maxLightDist= 1000.f; +//const float Renderer::maxLightDist= 100.f; +const float Renderer::maxLightDist= 1000.f; // ==================== constructor and destructor ==================== diff --git a/source/shared_lib/sources/platform/sdl/window.cpp b/source/shared_lib/sources/platform/sdl/window.cpp index 114f9ce4c..787b3ed61 100644 --- a/source/shared_lib/sources/platform/sdl/window.cpp +++ b/source/shared_lib/sources/platform/sdl/window.cpp @@ -662,6 +662,21 @@ char Window::getKey(SDL_keysym keysym,bool skipSpecialKeys) { } if(c == 0) { SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); + + if(skipSpecialKeys == false) { + switch(keysym.sym) { + case SDLK_LALT: + case SDLK_RALT: + return vkAlt; + case SDLK_LCTRL: + case SDLK_RCTRL: + return vkControl; + case SDLK_LSHIFT: + case SDLK_RSHIFT: + return vkShift; + } + } + c = keysym.sym; }