in pdata communication swap_bytes was set for create_shortpos causing problems on PPC architecture; in multiplayer host menu set citem to START GAME by default
This commit is contained in:
parent
7e51471eb2
commit
e34035ec05
|
@ -1,5 +1,9 @@
|
||||||
D2X-Rebirth Changelog
|
D2X-Rebirth Changelog
|
||||||
|
|
||||||
|
20100901
|
||||||
|
--------
|
||||||
|
main/net_ipx.c, main/net_udp.c: in pdata communication swap_bytes was set for create_shortpos causing problems on PPC architecture; in multiplayer host menu set citem to START GAME by default
|
||||||
|
|
||||||
20100831
|
20100831
|
||||||
--------
|
--------
|
||||||
include/u_mem.h, main/menu.c, main/newmenu.c, main/newmenu.h: Added feature to let select_file_reursive() change drive on _WIN32 via CTRL-D; Removed second definition of MEM_K accidentially happened due to bad communication
|
include/u_mem.h, main/menu.c, main/newmenu.c, main/newmenu.h: Added feature to let select_file_reursive() change drive on _WIN32 via CTRL-D; Removed second definition of MEM_K accidentially happened due to bad communication
|
||||||
|
|
|
@ -3220,7 +3220,7 @@ int net_ipx_setup_game()
|
||||||
|
|
||||||
Assert(optnum <= 20);
|
Assert(optnum <= 20);
|
||||||
|
|
||||||
i = newmenu_do1( NULL, TXT_NETGAME_SETUP, optnum, m, (int (*)( newmenu *, d_event *, void * ))net_ipx_game_param_handler, &opt, 1 );
|
i = newmenu_do1( NULL, TXT_NETGAME_SETUP, optnum, m, (int (*)( newmenu *, d_event *, void * ))net_ipx_game_param_handler, &opt, opt.start_game );
|
||||||
|
|
||||||
if (i < 0)
|
if (i < 0)
|
||||||
ipxdrv_close();
|
ipxdrv_close();
|
||||||
|
|
|
@ -3260,7 +3260,7 @@ int net_udp_setup_game()
|
||||||
|
|
||||||
Assert(optnum <= 20);
|
Assert(optnum <= 20);
|
||||||
|
|
||||||
i = newmenu_do1( NULL, TXT_NETGAME_SETUP, optnum, m, (int (*)( newmenu *, d_event *, void * ))net_udp_game_param_handler, &opt, 1 );
|
i = newmenu_do1( NULL, TXT_NETGAME_SETUP, optnum, m, (int (*)( newmenu *, d_event *, void * ))net_udp_game_param_handler, &opt, opt.start_game );
|
||||||
|
|
||||||
if (i < 0)
|
if (i < 0)
|
||||||
net_udp_close();
|
net_udp_close();
|
||||||
|
@ -4530,7 +4530,7 @@ void net_udp_send_pdata()
|
||||||
|
|
||||||
for (i = 0; i < MAX_PLAYERS; i++)
|
for (i = 0; i < MAX_PLAYERS; i++)
|
||||||
if (Players[i].connected == CONNECT_PLAYING)
|
if (Players[i].connected == CONNECT_PLAYING)
|
||||||
create_shortpos(&pos[i], Objects+Players[i].objnum, 1);
|
create_shortpos(&pos[i], Objects+Players[i].objnum, 0);
|
||||||
|
|
||||||
for (i = 1; i < MAX_PLAYERS; i++)
|
for (i = 1; i < MAX_PLAYERS; i++)
|
||||||
{
|
{
|
||||||
|
@ -4578,7 +4578,7 @@ void net_udp_send_pdata()
|
||||||
buf[len] = Players[Player_num].connected; len++;
|
buf[len] = Players[Player_num].connected; len++;
|
||||||
buf[len] = Objects[Players[j].objnum].render_type; len++;
|
buf[len] = Objects[Players[j].objnum].render_type; len++;
|
||||||
memset(&pos, 0, sizeof(shortpos));
|
memset(&pos, 0, sizeof(shortpos));
|
||||||
create_shortpos(&pos, Objects+Players[Player_num].objnum, 1);
|
create_shortpos(&pos, Objects+Players[Player_num].objnum, 0);
|
||||||
memcpy(buf + len, &pos.bytemat, 9); len += 9;
|
memcpy(buf + len, &pos.bytemat, 9); len += 9;
|
||||||
PUT_INTEL_SHORT(&buf[len], pos.xo); len += 2;
|
PUT_INTEL_SHORT(&buf[len], pos.xo); len += 2;
|
||||||
PUT_INTEL_SHORT(&buf[len], pos.yo); len += 2;
|
PUT_INTEL_SHORT(&buf[len], pos.yo); len += 2;
|
||||||
|
|
Loading…
Reference in a new issue