From f995cdd800487c7ea90f50018c98e808b0ec655b Mon Sep 17 00:00:00 2001 From: DragonAura Date: Mon, 24 Apr 2023 18:03:30 +0800 Subject: [PATCH] fix(CAPI): :fire: fix wrong debug code --- CAPI/cpp/API/src/logic.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/CAPI/cpp/API/src/logic.cpp b/CAPI/cpp/API/src/logic.cpp index 9431289..82dab90 100644 --- a/CAPI/cpp/API/src/logic.cpp +++ b/CAPI/cpp/API/src/logic.cpp @@ -566,7 +566,6 @@ void Logic::LoadBufferCase(const protobuf::MessageOfObj& item) { if (AssistFunction::HaveView(viewRange, x, y, item.gate_message().x(), item.gate_message().y(), bufferState->gameMap)) { - std::cout << "x:" << item.gate_message().x() << "y:" << item.gate_message().y() << std::endl; auto pos = std::make_pair(AssistFunction::GridToCell(item.gate_message().x()), AssistFunction::GridToCell(item.gate_message().y())); if (bufferState->mapInfo->gateState.count(pos) == 0) { @@ -575,11 +574,6 @@ void Logic::LoadBufferCase(const protobuf::MessageOfObj& item) } else { - if (playerID == 1) - { - std::cout << pos.first << pos.second << std::endl; - std::cout << "Update Gate!" << std::endl; - } bufferState->mapInfo->gateState[pos] = item.gate_message().progress(); logger->debug("Update Gate!"); }