X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgame_session.cpp;h=5a8ad88b0c514623eb46aefbc712ace37855bd8f;hb=f5560865fe3013de79e832b2715447354dfe2e53;hp=7269678d071348525b8e063991ba29e01c66ab27;hpb=1486ceaaf9dd7a9d2d7e3654550b9a2768df2a56;p=supertux.git diff --git a/src/game_session.cpp b/src/game_session.cpp index 7269678d0..5a8ad88b0 100644 --- a/src/game_session.cpp +++ b/src/game_session.cpp @@ -394,13 +394,6 @@ GameSession::consoleCommand(std::string command) msg_info("You are at x " << tux.get_pos().x << ", y " << tux.get_pos().y); return true; } -#if 0 - if(command == "grid")) { - // toggle debug grid - debug_grid = !debug_grid; - return true; - } -#endif if (command == "gotoend") { // goes to the end of the level tux.move(Vector( @@ -410,15 +403,12 @@ GameSession::consoleCommand(std::string command) return true; } if (command == "flip") { - FlipLevelTransformer flip_transformer; + FlipLevelTransformer flip_transformer; flip_transformer.transform(GameSession::current()->get_current_level()); return true; } if (command == "finish") { - if(WorldMap::current() != NULL) { - WorldMap::current()->finished_level(levelfile); - } - + finish(true); return true; } if (command == "camera") {