- removed NO_UPDATE and let the default argument handle it
[supertux.git] / src / supertux.cpp
1 /*
2   supertux.c
3   
4   Super Tux
5   
6   by Bill Kendrick & Tobias Glaesser <tobi.web@gmx.de>
7   bill@newbreedsoftware.com
8   http://www.newbreedsoftware.com/supertux/
9   
10   April 11, 2000 - March 15, 2004
11 */
12
13 #include "supertux.h"
14
15
16 /* --- MAIN --- */
17
18 int main(int argc, char * argv[])
19 {
20   int done;
21   
22   parseargs(argc, argv);
23   
24   st_directory_setup();
25   st_audio_setup();
26   st_video_setup();
27   st_joystick_setup();
28   st_general_setup();
29   st_menu();
30
31   if (launch_worldmap_mode)
32     {
33       worldmap_run();
34     }
35   else if (level_startup_file)
36     {
37       gameloop(level_startup_file, 1, ST_GL_LOAD_LEVEL_FILE);
38     }
39   else
40     {  
41       done = intro();
42   
43       done = 0;
44   
45       while (!done)
46         {
47           done = title();
48         }
49     }
50   
51   clearscreen(0, 0, 0);
52   updatescreen();
53
54   st_shutdown();
55   
56   return(0);
57 }