get multiplayer connection working again

master
darkrose 2017-08-20 02:41:24 +10:00
parent 6ee1f8e1ec
commit ef6608a87a
1 changed files with 25 additions and 10 deletions

View File

@ -1210,16 +1210,31 @@ int main(int argc, char *argv[])
/*
Run game
*/
if (!world_init(NULL)) {
the_game(
kill,
input,
device,
font,
password,
error_message
);
world_exit();
{
char* v = config_get("world.server.address");
if (!v || !v[0]) {
if (!world_init(NULL)) {
the_game(
kill,
input,
device,
font,
password,
error_message
);
world_exit();
}
}else{
the_game(
kill,
input,
device,
font,
password,
error_message
);
config_clear("world");
}
}
#if USE_AUDIO == 1
sound_stop_effects(0);