Browse Source

fix(CAPI): 🔥 fix wrong debug code

tags/0.1.0
DragonAura 2 years ago
parent
commit
f995cdd800
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      CAPI/cpp/API/src/logic.cpp

+ 0
- 6
CAPI/cpp/API/src/logic.cpp View File

@@ -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)) 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())); auto pos = std::make_pair(AssistFunction::GridToCell(item.gate_message().x()), AssistFunction::GridToCell(item.gate_message().y()));
if (bufferState->mapInfo->gateState.count(pos) == 0) if (bufferState->mapInfo->gateState.count(pos) == 0)
{ {
@@ -575,11 +574,6 @@ void Logic::LoadBufferCase(const protobuf::MessageOfObj& item)
} }
else 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(); bufferState->mapInfo->gateState[pos] = item.gate_message().progress();
logger->debug("Update Gate!"); logger->debug("Update Gate!");
} }


Loading…
Cancel
Save