Prechádzať zdrojové kódy

prohibit digging while waiting for your turn to start

Andrey Filipenkov 3 rokov pred
rodič
commit
836d7dc2d6
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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;
 		}