From: Ondřej Hošek Date: Wed, 11 May 2005 17:31:23 +0000 (+0000) Subject: Added the "button" property to the list that scripttrigger.cpp writes out into a... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7f7215b9224741dd7425dd9e9bff0745d7e513d4;p=supertux.git Added the "button" property to the list that scripttrigger.cpp writes out into a level file. SVN-Revision: 2472 --- diff --git a/src/trigger/scripttrigger.cpp b/src/trigger/scripttrigger.cpp index 1d2ccb84d..e5bc84863 100644 --- a/src/trigger/scripttrigger.cpp +++ b/src/trigger/scripttrigger.cpp @@ -71,6 +71,7 @@ ScriptTrigger::write(lisp::Writer& writer) writer.write_float("width", bbox.get_width()); writer.write_float("height", bbox.get_height()); writer.write_string("script", script); + writer.write_bool("button", (triggerevent == EVENT_ACTIVATE) ? true : false); writer.end_list("scripttrigger"); }