projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed game crashing when leaving the worldmap
[supertux.git]
/
src
/
scripting
/
level.cpp
diff --git
a/src/scripting/level.cpp
b/src/scripting/level.cpp
index
f780ee2
..
8967741
100644
(file)
--- a/
src/scripting/level.cpp
+++ b/
src/scripting/level.cpp
@@
-65,4
+65,12
@@
namespace Scripting
return;
GameSession::current()->toggle_pause();
}
+
+ void
+ Level::edit(bool edit_mode)
+ {
+ if(GameSession::current() == NULL) return;
+ GameSession::current()->set_editmode(edit_mode);
+ }
+
}