Made resent_delay for net_udp_noloss_process_queue() a bit longer depending on the player's ping

This commit is contained in:
zicodxx 2010-12-03 01:09:22 +01:00
parent 822ffc543f
commit f0c4d80f48
2 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20101203
--------
main/net_udp.c: Made resent_delay for net_udp_noloss_process_queue() a bit longer depending on the player's ping
20101130
--------
include/hmp.h, misc/hmp.c: Little fixes for rev939 - changed definition from WIN32 to _WIN32, added little hack for incorrectly set HMP loop in Descent2-version of descent.hmp

View file

@ -3998,10 +3998,8 @@ void net_udp_noloss_process_queue(fix time)
if (!UDP_mdata_queue[queuec].player_ack[plc])
{
// Set resend interval
if (Netgame.players[plc].ping < 20)
resend_delay = (F1_0/20);
else if (Netgame.players[plc].ping < 500)
resend_delay = i2f(Netgame.players[plc].ping + (Netgame.players[plc].ping/10));
if (Netgame.players[plc].ping < 100)
resend_delay = (F1_0/3);
else
resend_delay = (F1_0/2);