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:
@@ -1234,7 +1234,7 @@ void CAdvMapInt::keyPressed(const SDL_KeyboardEvent & key)
|
|||||||
return;
|
return;
|
||||||
case SDLK_d:
|
case SDLK_d:
|
||||||
{
|
{
|
||||||
if(h && isActive() && key.state == SDL_PRESSED)
|
if(h && isActive() && LOCPLINT->makingTurn && key.state == SDL_PRESSED)
|
||||||
LOCPLINT->tryDiggging(h);
|
LOCPLINT->tryDiggging(h);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user