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

prohibit digging while waiting for your turn to start

This commit is contained in:
Andrey Filipenkov 2022-09-29 15:52:28 +03:00
parent 4a7d290112
commit 836d7dc2d6

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;
}