1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Implemented #390.

This commit is contained in:
Michał W. Urbańczyk 2010-03-01 19:04:07 +00:00
parent 39dcf007d1
commit 0b824585e2

View File

@ -1832,6 +1832,17 @@ void CAdvMapInt::keyPressed(const SDL_KeyboardEvent & key)
if(isActive())
GH.pushInt(new CSelectionScreen(CMenuScreen::saveGame));
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
{
if(!isActive())