#include "audio/sound_manager.hpp"
#include "object_factory.hpp"
#include "sector.hpp"
-#include "scripting/script_interpreter.hpp"
#include "msg.hpp"
PowerUp::PowerUp(const lisp::Lisp& lisp)
remove_me();
if (script != "") {
- ScriptInterpreter::add_script_object(Sector::current(), "powerup-script",
- script);
+ std::istringstream stream(script);
+ Sector::current()->run_script(stream, "powerup-script");
return ABORT_MOVE;
}