瀏覽代碼

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;