浏览代码

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

prohibit digging while waiting for your turn to start
Andrii Danylchenko 3 年之前
父节点
当前提交
4835387004
共有 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;
 		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;
 		}
 		}