Just like for players do not protect robot firing or positional data (via PLP) to prevent jumpy movement with delayed packets
This commit is contained in:
parent
41b4c080fa
commit
7072a067a9
|
@ -3,6 +3,7 @@ D2X-Rebirth Changelog
|
||||||
20110709
|
20110709
|
||||||
--------
|
--------
|
||||||
main/gamerend.c, main/gauges.h: In Multiplayer games show player names in big guided window as well
|
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
|
20110708
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -392,7 +392,7 @@ multi_send_robot_frame(int sent)
|
||||||
if (robot_fired[sending])
|
if (robot_fired[sending])
|
||||||
{
|
{
|
||||||
robot_fired[sending] = 0;
|
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))
|
if (!(Game_mode & GM_NETWORK))
|
||||||
|
@ -430,7 +430,7 @@ multi_send_robot_position_sub(int objnum)
|
||||||
memcpy(&(multibuf[loc]), (ubyte *)&(sp.xo), 14);
|
memcpy(&(multibuf[loc]), (ubyte *)&(sp.xo), 14);
|
||||||
loc += 14;
|
loc += 14;
|
||||||
#endif
|
#endif
|
||||||
multi_send_data(multibuf, loc, 1);
|
multi_send_data(multibuf, loc, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -513,7 +513,7 @@ multi_send_robot_fire(int objnum, int gun_num, vms_vector *fire)
|
||||||
PacketUrgent = 1;
|
PacketUrgent = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
multi_send_data(multibuf, loc, 1); // Not our robot, send ASAP
|
multi_send_data(multibuf, loc, 0); // Not our robot, send ASAP
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue