Improved stay-on-platform code to handle non-32x32 badguys. Implemented s-o-p for...
[supertux.git] / src / lisp / writer.cpp
index 9312ea2..3969789 100644 (file)
@@ -143,6 +143,17 @@ Writer::write_int_vector(const std::string& name,
 }
 
 void
+Writer::write_float_vector(const std::string& name,
+                           const std::vector<float>& value)
+{
+  indent();
+  *out << '(' << name;
+  for(std::vector<float>::const_iterator i = value.begin(); i != value.end(); ++i)
+    *out << " " << *i;
+  *out << ")\n";
+}
+
+void
 Writer::indent()
 {
   for(int i = 0; i<indent_depth; ++i)