1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Merge pull request #1015 from kambala-decapitator/prohibit-dig-while-waiting

prohibit digging while waiting for your turn to start
This commit is contained in:
Andrii Danylchenko
2022-09-30 08:39:48 +03:00
committed by GitHub

View File

@@ -1234,7 +1234,7 @@ void CAdvMapInt::keyPressed(const SDL_KeyboardEvent & key)
return;
case SDLK_d:
{
if(h && isActive() && key.state == SDL_PRESSED)
if(h && isActive() && LOCPLINT->makingTurn && key.state == SDL_PRESSED)
LOCPLINT->tryDiggging(h);
return;
}