Skip to content

Commit 9e9f054

Browse files
Merge pull request #128 from Longwater1234/dev
2 parents 232517a + 8ba5ad2 commit 9e9f054

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/WsClient.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ inline void WsClient::showHint(const char *tip)
124124
*/
125125
inline void WsClient::showConnectWindow()
126126
{
127-
static bool is_secure = false; // switch to enable/disable SSL (PRIVATE servers only)
127+
static bool is_secure = false; // switch for enable/disable SSL (PRIVATE servers only)
128128
static bool show_public = true; // whether to show public server list
129129

130130
if (show_public)
@@ -222,7 +222,10 @@ inline void WsClient::parseServerList(const cpr::Response &response)
222222
{
223223
if (response.status_code != 200)
224224
{
225+
#ifndef NDEBUG
225226
spdlog::error("http request failed. Reason {}", response.error.message);
227+
#endif //DEBUG
228+
226229
std::scoped_lock lg{this->mut};
227230
this->deathNote = "httpRequest error: " + response.error.message;
228231
this->isDead = true;

src/managers/LocalGameManager.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ inline void LocalGameManager::handleEvents(chk::CircularBuffer<short> &buffer)
149149
{
150150
continue;
151151
}
152+
// START inner loop:
152153
for (auto &cell : this->getBlockList())
153154
{
154-
// inner loop
155155
if (cell->containsPoint(clickedPos) && cell->getIndex() != -1)
156156
{
157157
const auto &hunter = this->isPlayerRedTurn() ? this->playerRed : this->playerBlack;
@@ -160,6 +160,7 @@ inline void LocalGameManager::handleEvents(chk::CircularBuffer<short> &buffer)
160160
break;
161161
}
162162
}
163+
//^ END inner loop
163164
}
164165
}
165166
}

src/managers/OnlineGameManager.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ inline void OnlineGameManager::handleEvents(chk::CircularBuffer<short> &buffer)
215215
break;
216216
}
217217
}
218+
//^ END inner loop
218219
}
219220
}
220221
}

0 commit comments

Comments
 (0)