X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Flevel.cpp;h=9b6749fbf5e24001804608947e1b8630bf00ca8a;hb=eb7c6ccdd326f6bceb67cd5259015dd994b04928;hp=d29e18b654c53a38764137e5af82f46d005ba786;hpb=60908c905544776c376421b8d3e12eeb936c068f;p=supertux.git diff --git a/src/scripting/level.cpp b/src/scripting/level.cpp index d29e18b65..9b6749fbf 100644 --- a/src/scripting/level.cpp +++ b/src/scripting/level.cpp @@ -3,8 +3,7 @@ #include #include #include "level.h" - -#define NOIMPL printf("%s not implemented.\n", __PRETTY_FUNCTION__); +#include "game_session.h" namespace Scripting { @@ -17,12 +16,12 @@ namespace Scripting void Level::finish() { - NOIMPL; + GameSession::current()->finish(); } void - Level::spawn(const std::string& , const std::string& ) + Level::spawn(const std::string& sector, const std::string& spawnpoint) { - NOIMPL; + GameSession::current()->respawn(sector, spawnpoint); } }