From 0034744568ccf97c20638a7e4eb7afc11c4579d6 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 24 Apr 2011 00:11:23 +0300 Subject: Made the main menu a bit more unique looking --- src/game.cpp | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 9a0fd312b..c806034f2 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -652,15 +652,33 @@ void the_game( gui_loadingtext->remove(); return; } + + /* + Attempt to connect to the server + */ dstream<= 10.0) + { + break; + } + // Update screen driver->beginScene(true, true, video::SColor(255,0,0,0)); guienv->drawAll(); @@ -675,12 +693,15 @@ void the_game( // Delay a bit sleep_ms(100); + time_counter += 0.1; } } catch(con::PeerNotFoundException &e) + {} + + if(could_connect == false) { std::cout<remove(); return; -- cgit v1.2.3