Fix triangulation and fix skpath read function

This commit is contained in:
Yousef Khadadeh 2026-05-31 13:36:12 +03:00
parent 48823ebad6
commit e2a62e852c
3 changed files with 143 additions and 118 deletions

View file

@ -67,12 +67,9 @@ void NetClient::update() {
isDisconnected = true;
return;
}
#ifdef NDEBUG
try {
#endif
parse_received_messages();
send_queued_messages();
#ifdef NDEBUG
}
catch(const std::exception& e) {
Logger::get().log(Logger::LogType::INFO, "[NetClient::update] Exception thrown while parsing and sending messages: " + std::string(e.what()));
@ -82,7 +79,6 @@ void NetClient::update() {
Logger::get().log(Logger::LogType::INFO, "[NetClient::update] Unknown exception thrown while parsing and sending messages.");
isDisconnected = true;
}
#endif
}
void NetClient::parse_received_messages() {

View file

@ -44,12 +44,9 @@ void NetServer::update() {
if(client->setToDisconnect)
disconnectCallback(client);
else {
#ifdef NDEBUG
try {
#endif
client->parse_received_messages(*this);
client->send_queued_messages(*this);
#ifdef NDEBUG
}
catch(const std::exception& e) {
Logger::get().log(Logger::LogType::INFO, "[NetServer::update] Exception thrown while parsing and sending messages for a client: " + std::string(e.what()));
@ -61,7 +58,6 @@ void NetServer::update() {
client->setToDisconnect = true;
disconnectCallback(client);
}
#endif
}
}
}