瀏覽代碼

Implemented #390.

Michał W. Urbańczyk 15 年之前
父節點
當前提交
0b824585e2
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      client/CAdvmapInterface.cpp

+ 11 - 0
client/CAdvmapInterface.cpp

@@ -1832,6 +1832,17 @@ void CAdvMapInt::keyPressed(const SDL_KeyboardEvent & key)
 		if(isActive())
 		if(isActive())
 			GH.pushInt(new CSelectionScreen(CMenuScreen::saveGame));
 			GH.pushInt(new CSelectionScreen(CMenuScreen::saveGame));
 		return;
 		return;
+	case SDLK_d: 
+		{
+			const CGHeroInstance *h = dynamic_cast<const CGHeroInstance*>(selection);
+			if(h && isActive())
+				LOCPLINT->tryDiggging(h);
+			return;
+		}
+	case SDLK_p: 
+		if(isActive())
+			LOCPLINT->showPuzzleMap();
+		return;
 	case SDLK_SPACE: //space - try to revisit current object with selected hero
 	case SDLK_SPACE: //space - try to revisit current object with selected hero
 		{
 		{
 			if(!isActive()) 
 			if(!isActive())