X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsupertux.cpp;h=73991fe1c45f61a03821c32a9f7766e9d99caf0c;hb=aadd77c676baae31db931c8e64cd1713c24289d5;hp=d43ca9eb221a80a5a6f5eb0af38eefa20f5fdf07;hpb=7bdfe568af536c2379a1c396524990e4463e5261;p=supertux.git diff --git a/src/supertux.cpp b/src/supertux.cpp index d43ca9eb2..73991fe1c 100644 --- a/src/supertux.cpp +++ b/src/supertux.cpp @@ -17,7 +17,7 @@ int main(int argc, char * argv[]) { - int done; + bool done; st_directory_setup(); parseargs(argc, argv); @@ -34,12 +34,12 @@ int main(int argc, char * argv[]) } else if (level_startup_file) { - gameloop(level_startup_file, 1, ST_GL_LOAD_LEVEL_FILE); + GameSession session(level_startup_file, 1, ST_GL_LOAD_LEVEL_FILE); + session.run(); } else { - done = 0; - + done = false; while (!done) { done = title(); @@ -51,5 +51,5 @@ int main(int argc, char * argv[]) st_shutdown(); - return(0); + return 0; }