From 7072a067a99dc3c17d9a7c28b58daf155fb76c5e Mon Sep 17 00:00:00 2001 From: zicodxx Date: Sat, 9 Jul 2011 13:30:33 +0200 Subject: [PATCH] Just like for players do not protect robot firing or positional data (via PLP) to prevent jumpy movement with delayed packets --- CHANGELOG.txt | 1 + main/multibot.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 5f1dba865..fab31cd36 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ D2X-Rebirth Changelog 20110709 -------- main/gamerend.c, main/gauges.h: In Multiplayer games show player names in big guided window as well +main/multibot.c: Just like for players do not protect robot firing or positional data (via PLP) to prevent jumpy movement with delayed packets 20110708 -------- diff --git a/main/multibot.c b/main/multibot.c index 30d08d346..67858545b 100644 --- a/main/multibot.c +++ b/main/multibot.c @@ -392,7 +392,7 @@ multi_send_robot_frame(int sent) if (robot_fired[sending]) { robot_fired[sending] = 0; - multi_send_data((char *)robot_fire_buf[sending], 18, 1); + multi_send_data((char *)robot_fire_buf[sending], 18, 0); } if (!(Game_mode & GM_NETWORK)) @@ -430,7 +430,7 @@ multi_send_robot_position_sub(int objnum) memcpy(&(multibuf[loc]), (ubyte *)&(sp.xo), 14); loc += 14; #endif - multi_send_data(multibuf, loc, 1); + multi_send_data(multibuf, loc, 0); } void @@ -513,7 +513,7 @@ multi_send_robot_fire(int objnum, int gun_num, vms_vector *fire) PacketUrgent = 1; } else - multi_send_data(multibuf, loc, 1); // Not our robot, send ASAP + multi_send_data(multibuf, loc, 0); // Not our robot, send ASAP } void