From 5f17f6a40bee66297b0d7c7d2a1aefa94b248f1f Mon Sep 17 00:00:00 2001 From: zicodxx Date: Mon, 19 Sep 2011 13:41:58 +0200 Subject: [PATCH] Removed saving/restoring the state of Packet Loss Prevention from Netgame profiles --- CHANGELOG.txt | 1 + main/playsave.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4f7c5b95c..1aabe498b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ D1X-Rebirth Changelog 20110919 -------- main/multi.h, main/net_udp.c: Reworked Packet Loss Prevention: If an important packet could not be recovered until it timed out, dump player who failed sending/receiving it; Noloss queue can proces spackets until a certain traffic has been reached; In main UDP frame schedule different types of packets depending on PPS to decrease traffic produced in one frame, hopefully preventing too much loss in high-traffic situations; Small code cleanups; Added new dump signal for loss of important packet; When dumping player also disconnect that one in case the dumped player does not accept the signal +main/playsave.c: Removed saving/restoring the state of Packet Loss Prevention from Netgame profiles 20110915 -------- diff --git a/main/playsave.c b/main/playsave.c index d6e218f49..a04a59412 100644 --- a/main/playsave.c +++ b/main/playsave.c @@ -1045,8 +1045,6 @@ void read_netgame_profile(netgame_info *ng) ng->control_invul_time = strtol(value, NULL, 10); else if (!strcmp(token, "PacketsPerSec")) ng->PacketsPerSec = strtol(value, NULL, 10); - else if (!strcmp(token, "PacketLossPrevention")) - ng->PacketLossPrevention = strtol(value, NULL, 10); else if (!strcmp(token, "NoFriendlyFire")) ng->NoFriendlyFire = strtol(value, NULL, 10); #ifdef USE_TRACKER @@ -1085,7 +1083,6 @@ void write_netgame_profile(netgame_info *ng) PHYSFSX_printf(file, "PlayTimeAllowed=%i\n", ng->PlayTimeAllowed); PHYSFSX_printf(file, "control_invul_time=%i\n", ng->control_invul_time); PHYSFSX_printf(file, "PacketsPerSec=%i\n", ng->PacketsPerSec); - PHYSFSX_printf(file, "PacketLossPrevention=%i\n", ng->PacketLossPrevention); PHYSFSX_printf(file, "NoFriendlyFire=%i\n", ng->NoFriendlyFire); #ifdef USE_TRACKER PHYSFSX_printf(file, "Tracker=%i\n", ng->Tracker);