Commit b4e99c49 authored by Pavel Vainerman's avatar Pavel Vainerman

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

parent b650e431
...@@ -284,8 +284,8 @@ void UNetReceiver::real_update() ...@@ -284,8 +284,8 @@ void UNetReceiver::real_update()
if( sub >= maxDifferens ) if( sub >= maxDifferens )
{ {
// считаем сколько пакетов потеряли.. // считаем сколько пакетов потеряли.. (pnum=0 - означает что мы только что запустились...)
if( p.num > pnum ) if( pnum!=0 && p.num > pnum )
lostPackets += sub; 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