Commit b4e99c49 authored by Pavel Vainerman's avatar Pavel Vainerman

(UNet): подправил расчёт lostPackets

parent b650e431
......@@ -284,8 +284,8 @@ void UNetReceiver::real_update()
if( sub >= maxDifferens )
{
// считаем сколько пакетов потеряли..
if( p.num > pnum )
// считаем сколько пакетов потеряли.. (pnum=0 - означает что мы только что запустились...)
if( pnum!=0 && p.num > pnum )
lostPackets += sub;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment