just reload the game when connecting to a netplay lobby

This commit is contained in:
radius 2017-01-22 15:42:38 -05:00
parent b594ab3d11
commit 692bedf7d3

View File

@ -3140,18 +3140,8 @@ static int action_ok_netplay_connect_room(const char *path,
netplay_room_list[idx - 1].gamename,
netplay_room_list[idx - 1].gamecrc);
/* If we haven't yet started, this will load on its own */
if (!content_is_inited())
{
task_push_netplay_crc_scan(netplay_room_list[idx - 1].gamecrc,
tmp_hostname, netplay_room_list[idx - 1].corename);
}
else
{
/* Enable Netplay itself */
if (!command_event(CMD_EVENT_NETPLAY_INIT, (void *) tmp_hostname))
return -1;
}
task_push_netplay_crc_scan(netplay_room_list[idx - 1].gamecrc,
tmp_hostname, netplay_room_list[idx - 1].corename);
#else
return -1;