X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fscript_interpreter.cpp;h=af17653c86d1f978aad5626787d88e9c460f6bcb;hb=071c31e7fcf8bfbd00ec8d7d19313d7f6e433885;hp=484465682112153753cd1f285254043ff1ff5a88;hpb=45ecab3e0289e360312509a7ea43df4d47c67157;p=supertux.git diff --git a/src/scripting/script_interpreter.cpp b/src/scripting/script_interpreter.cpp index 484465682..af17653c8 100644 --- a/src/scripting/script_interpreter.cpp +++ b/src/scripting/script_interpreter.cpp @@ -23,6 +23,7 @@ #include "object/text_object.hpp" #include "object/scripted_object.hpp" #include "object/display_effect.hpp" +#include "object/player.hpp" #include "scripting/sound.hpp" #include "scripting/scripted_object.hpp" #include "scripting/display_effect.hpp" @@ -89,6 +90,7 @@ ScriptInterpreter::register_sector(Sector* sector) expose_object(scripted_object, scripted_object->get_name()); } + expose_object(static_cast (sector->player), "Tux"); TextObject* text_object = new TextObject(); sector->add_object(text_object); Scripting::Text* text = static_cast (text_object);