Browse Source

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

prohibit digging while waiting for your turn to start
Andrii Danylchenko 3 years ago
parent
commit
4835387004
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/windows/CAdvmapInterface.cpp

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