Преглед изворни кода

Fix arrow keys moving on adventure map

AlexVinS пре 11 година
родитељ
комит
04aa76b842
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      client/CAdvmapInterface.cpp

+ 1 - 1
client/CAdvmapInterface.cpp

@@ -924,7 +924,7 @@ void CAdvMapInt::keyPressed(const SDL_KeyboardEvent & key)
 			#ifdef VCMI_SDL1
 			k -= SDLK_KP0 + 1;
 			#else
-			k -= SDL_SCANCODE_KP_0 + 1;
+			k -= SDLK_KP_1;
 			#endif // 0			
 			if(k < 0 || k > 8)
 				return;