//\r
// This program is free software; you can redistribute it and/or\r
// modify it under the terms of the GNU General Public License\r
//\r
// This program is free software; you can redistribute it and/or\r
// modify it under the terms of the GNU General Public License\r
// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
// GNU General Public License for more details.\r
// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
// GNU General Public License for more details.\r
// You should have received a copy of the GNU General Public License\r
// along with this program; if not, write to the Free Software\r
// You should have received a copy of the GNU General Public License\r
// along with this program; if not, write to the Free Software\r
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA\r
-// 02111-1307, USA.\r
-//\r
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
+\r
#include "lisp/lisp.hpp"\r
#include "lisp/writer.hpp"\r
#include "object_factory.hpp"\r
#include "lisp/lisp.hpp"\r
#include "lisp/writer.hpp"\r
#include "object_factory.hpp"\r
\r
reader.get("x", bbox.p1.x);\r
reader.get("y", bbox.p1.y);\r
\r
reader.get("x", bbox.p1.x);\r
reader.get("y", bbox.p1.y);\r
reader.get("width", w);\r
reader.get("height", h);\r
bbox.set_size(w, h);\r
reader.get("width", w);\r
reader.get("height", h);\r
bbox.set_size(w, h);\r
- ScriptInterpreter::add_script_object(Sector::current(), "trigger - scritp",\r
- script);\r
+ std::istringstream stream(script);\r
+ Sector::current()->run_script(stream, "ScriptTrigger");\r