From: Mikko Rasa Date: Sun, 26 Jan 2025 18:43:41 +0000 (+0200) Subject: Adjust for changes in mspnet X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=eb481aea3880cfef28279a29b69b563b6358f46f;p=libs%2Fgame.git Adjust for changes in mspnet --- diff --git a/source/game/networking.cpp b/source/game/networking.cpp index e1bb233..a430856 100644 --- a/source/game/networking.cpp +++ b/source/game/networking.cpp @@ -199,9 +199,12 @@ void Networking::protocol_ready(const Net::Protocol &p) void Networking::incoming_connection() { - unique_ptr socket(server_socket->accept()); - clients.emplace_back(make_unique(*this, move(socket))); - + unique_ptr socket(server_socket->accept()); + if(dynamic_cast(socket.get())) + { + unique_ptr strsock(static_cast(socket.release())); + clients.emplace_back(make_unique(*this, move(strsock))); + } } void Networking::stage_activated(const Events::StageActivated &event)