X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsupertux.c;h=ad86fd69d0d987193f5633f57d36f2acb186d119;hb=2f395aba3974db45f45a8587ed423a3abeab4cd5;hp=8616f1c60cba8007ca20d979c0732d6ad6e4e887;hpb=3d9fd78f863d2bac06e9d4f3144b4401a2c2a08f;p=supertux.git diff --git a/src/supertux.c b/src/supertux.c index 8616f1c60..ad86fd69d 100644 --- a/src/supertux.c +++ b/src/supertux.c @@ -7,23 +7,11 @@ bill@newbreedsoftware.com http://www.newbreedsoftware.com/supertux/ - April 11, 2000 - April 12, 2000 + April 11, 2000 - December 29, 2003 */ -#ifdef LINUX -#include -#include -#include -#endif - -#include "defines.h" -#include "globals.h" -#include "setup.h" -#include "intro.h" -#include "title.h" -#include "gameloop.h" -#include "screen.h" +#include "supertux.h" /* --- MAIN --- */ @@ -38,8 +26,12 @@ int main(int argc, char * argv[]) parseargs(argc, argv); - st_setup(); - + st_directory_setup(); + st_audio_setup(); + st_video_setup(); + st_joystick_setup(); + st_general_setup(); + done = intro(); done = 0; @@ -48,7 +40,12 @@ int main(int argc, char * argv[]) { done = title(); if (!done) + { + if(game_started) done = gameloop(); + else if(level_editor_started) + done = leveleditor(1); + } } clearscreen(0, 0, 0);