Client: add note for reconnect logic

Potential engine bug that needs to be fixed to allow reconnecting to listen server without killing it.
This commit is contained in:
Kawe Mazidjatari 2024-07-05 15:56:07 +02:00
parent f2c64b390c
commit 20e0d0ee53

View File

@ -475,6 +475,10 @@ void CClientState::Reconnect()
const netadr_t& remoteAdr = m_NetChannel->GetRemoteAddress();
// NOTE: technically the engine supports running "connect localhost" to
// reconnect to the listen server without killing it, however when running
// this, an engine error occurs "Couldn't create a world static vertex buffer\n"
// Needs investigation.
if (remoteAdr.IsLoopback() || NET_IsRemoteLocal(remoteAdr))
{
Warning(eDLL_T::CLIENT, "Reconnecting to a listen server isn't supported, use \"reload\" instead.\n");