Pārlūkot izejas kodu

prohibit digging while waiting for your turn to start

Andrey Filipenkov 3 gadi atpakaļ
vecāks
revīzija
836d7dc2d6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;
 		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;
 		}
 		}