diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index a580b32bd703d8161937143602452e9b19513335..22265652546f9a396905fc16ddd1d86ada2eb107 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
end;
Exit;
end;
+ g_Net_Slist_ServerPlayerLeaves();
end;
procedure g_Game_Spectate();
Exit;
end;
- g_Net_Slist_Set(NetSlistIP, NetSlistPort);
+ g_Net_Slist_Set(NetSlistIP, NetSlistPort, NetSlistList);
g_Net_Slist_ServerStarted();
OuterLoop := True;
while OuterLoop do
begin
+ // fuck! https://www.mail-archive.com/enet-discuss@cubik.org/msg00852.html
+ // tl;dr: on shitdows, we can get -1 sometimes, and it is *NOT* a failure.
+ // thank you, enet. let's ignore failures altogether then.
while (enet_host_service(NetHost, @NetEvent, 50) > 0) do
begin
if (NetEvent.kind = ENET_EVENT_TYPE_RECEIVE) then