File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ inline void WsClient::showHint(const char *tip)
124124 */
125125inline 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 ;
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments