From 836d7dc2d64387011956a2c4af0d09d1b478946b Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Thu, 29 Sep 2022 15:52:28 +0300 Subject: [PATCH] prohibit digging while waiting for your turn to start --- client/windows/CAdvmapInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/windows/CAdvmapInterface.cpp b/client/windows/CAdvmapInterface.cpp index 13c8fc232..00ee474b9 100644 --- a/client/windows/CAdvmapInterface.cpp +++ b/client/windows/CAdvmapInterface.cpp @@ -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; }