fix setting of netplay has_password in lobby announcement

This commit is contained in:
Brad Parker 2017-03-06 16:01:45 -05:00
parent 4b796ae740
commit d9c78c75f0

View File

@ -625,7 +625,7 @@ static void netplay_announce(void)
"game_name=%s&game_crc=%08X&port=%d"
"&has_password=%d&has_spectate_password=%d&force_mitm=%d",
username, corename, coreversion, gamename, *content_crc_ptr,
settings->netplay.port, settings->netplay.password ? 1 : 0, settings->netplay.spectate_password ? 1 : 0,
settings->netplay.port, *settings->netplay.password ? 1 : 0, *settings->netplay.spectate_password ? 1 : 0,
settings->netplay.use_mitm_server);
task_push_http_post_transfer(url, buf, true, NULL, netplay_announce_cb, NULL);