浏览代码

prohibit digging while waiting for your turn to start

Andrey Filipenkov 3 年之前
父节点
当前提交
836d7dc2d6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 		}