From 28ee7ada33fe11f0883f495edb4ed1f0aa6a7519 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Thu, 12 Jul 2007 11:11:55 +0000 Subject: [PATCH] Ispy should now "really" be written out. SVN-Revision: 5130 --- src/object/ispy.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/object/ispy.cpp b/src/object/ispy.cpp index 60fbfc986..fb268423d 100644 --- a/src/object/ispy.cpp +++ b/src/object/ispy.cpp @@ -58,8 +58,18 @@ Ispy::write(lisp::Writer& writer) writer.start_list("ispy"); writer.write_float("x", bbox.p1.x); writer.write_float("y", bbox.p1.y); + writer.write_string("script", script); + switch (dir) + { + case DOWN: + writer.write_string("direction", "down"); break; + case LEFT: + writer.write_string("direction", "left"); break; + case RIGHT: + writer.write_string("direction", "right"); break; + default: break; + } writer.end_list("ispy"); - // TODO: does not really write out Ispy } HitResponse -- 2.11.0