From 5fe4e9c7370f2c8a8a3e77d97c2b4c6abe6d8b90 Mon Sep 17 00:00:00 2001 From: Dusan Durech Date: Sun, 27 Dec 2009 19:55:04 +0100 Subject: fix todo BUG: in network play, there is no reason for save dialog --- src/screen/world.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/screen') diff --git a/src/screen/world.c b/src/screen/world.c index 2b96919..1aaa2cc 100644 --- a/src/screen/world.c +++ b/src/screen/world.c @@ -384,10 +384,14 @@ void startWorld() radar_init(); pauza_init(); term_init(); - save_dialog_init(); - module_init(); setGameType(); + + if (net_multiplayer_get_game_type() == NET_GAME_TYPE_NONE) { + save_dialog_init(); + } + + module_init(); chat_init(); prepareArena(); } @@ -443,7 +447,10 @@ void stoptWorld() radar_quit(); pauza_quit(); term_quit(); - save_dialog_quit(); + + if (net_multiplayer_get_game_type() == NET_GAME_TYPE_NONE) { + save_dialog_quit(); + } if (control_tux_right != NULL) { control_destroy(control_tux_right); -- cgit v1.2.3