X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_game.pas;h=22265652546f9a396905fc16ddd1d86ada2eb107;hp=3356c80981de79eb3f32169ebeb6aaf5403590a7;hb=a50544067b99f65e2b4882366521287607dd892f;hpb=ada62776e1c2db5a0107b2eed7a3cac72250aa43 diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 3356c80..2226565 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -4630,6 +4630,9 @@ begin 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