projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more smaller fixes
[supertux.git]
/
src
/
game_session.cpp
diff --git
a/src/game_session.cpp
b/src/game_session.cpp
index
7269678
..
5a8ad88
100644
(file)
--- 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;
}
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(
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") {
return true;
}
if (command == "flip") {
-
FlipLevelTransformer flip_transformer;
+ FlipLevelTransformer flip_transformer;
flip_transformer.transform(GameSession::current()->get_current_level());
return true;
}
if (command == "finish") {
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") {
return true;
}
if (command == "camera") {