Fixed port deformation while sending handshake

This commit is contained in:
zicodxx 2007-10-12 14:02:34 +00:00
parent 8b07676a37
commit f1f435d041
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20070112
--------
main/ip_base.cpp: Fixed port deformation while sending handshake
20071008
--------
main/game.c, main/inferno.c, main/object.c, main/playsave.c: Improvements for Cockpit mode save; Fixed -pilot switch

View file

@ -137,6 +137,10 @@ void ip_peer::send_handshake(ip_handshake_base*hsb){
memcpy(buf+s,D1Xcfgid,4);s+=4;
s+=hsb->fillbuf(buf+s);
assert(s<256);
arch_ip_close_socket();
arch_ip_open_socket(UDP_BASEPORT+GameArg.MplIpBasePort);
if (addr.goodaddr==NULL){
ip_addr_list::iterator i;
for (i=addr.begin();i!=addr.end();i++)