Browse Source

Update last echo time when echo requests are sent

pull/8277/head
staphen 4 months ago committed by Anders Jenbo
parent
commit
02a153fe26
  1. 1
      Source/dvlnet/base.cpp

1
Source/dvlnet/base.cpp

@ -231,6 +231,7 @@ bool base::SNetReceiveMessage(uint8_t *sender, void **data, size_t *size)
if (lastEchoTime == 0 || now - lastEchoTime > 5000) {
for (plr_t i = 0; i < Players.size(); i++)
SendEchoRequest(i);
lastEchoTime = now;
}
poll();
if (message_queue.empty())

Loading…
Cancel
Save