forked from oerkki/voxelands
get multiplayer connection working again
This commit is contained in:
parent
6ee1f8e1ec
commit
ef6608a87a
35
src/main.cpp
35
src/main.cpp
|
@ -1210,16 +1210,31 @@ int main(int argc, char *argv[])
|
||||||
/*
|
/*
|
||||||
Run game
|
Run game
|
||||||
*/
|
*/
|
||||||
if (!world_init(NULL)) {
|
{
|
||||||
the_game(
|
char* v = config_get("world.server.address");
|
||||||
kill,
|
if (!v || !v[0]) {
|
||||||
input,
|
if (!world_init(NULL)) {
|
||||||
device,
|
the_game(
|
||||||
font,
|
kill,
|
||||||
password,
|
input,
|
||||||
error_message
|
device,
|
||||||
);
|
font,
|
||||||
world_exit();
|
password,
|
||||||
|
error_message
|
||||||
|
);
|
||||||
|
world_exit();
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
the_game(
|
||||||
|
kill,
|
||||||
|
input,
|
||||||
|
device,
|
||||||
|
font,
|
||||||
|
password,
|
||||||
|
error_message
|
||||||
|
);
|
||||||
|
config_clear("world");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#if USE_AUDIO == 1
|
#if USE_AUDIO == 1
|
||||||
sound_stop_effects(0);
|
sound_stop_effects(0);
|
||||||
|
|
Loading…
Reference in New Issue