forked from oerkki/voxelands
get multiplayer connection working again
This commit is contained in:
parent
6ee1f8e1ec
commit
ef6608a87a
15
src/main.cpp
15
src/main.cpp
|
@ -1210,6 +1210,9 @@ int main(int argc, char *argv[])
|
||||||
/*
|
/*
|
||||||
Run game
|
Run game
|
||||||
*/
|
*/
|
||||||
|
{
|
||||||
|
char* v = config_get("world.server.address");
|
||||||
|
if (!v || !v[0]) {
|
||||||
if (!world_init(NULL)) {
|
if (!world_init(NULL)) {
|
||||||
the_game(
|
the_game(
|
||||||
kill,
|
kill,
|
||||||
|
@ -1221,6 +1224,18 @@ int main(int argc, char *argv[])
|
||||||
);
|
);
|
||||||
world_exit();
|
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);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue