New grow and skid sounds from remaxim
[supertux.git] / src / tile.cpp
index 900fc5b..9e0d39b 100644 (file)
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //  02111-1307, USA.
+
 #include <config.h>
 
+#include "tile.hpp"
+
 #include <math.h>
 #include <assert.h>
 #include <iostream>
 #include <stdexcept>
 
 #include "lisp/lisp.hpp"
-#include "tile.hpp"
 #include "tile_set.hpp"
-#include "resources.hpp"
 #include "timer.hpp"
 #include "math/vector.hpp"
 #include "video/drawing_context.hpp"
@@ -105,9 +106,19 @@ Tile::parse(const lisp::Lisp& reader)
     attributes |= SOLID | SLOPE;
   }
 
-  const lisp::Lisp* images = reader.get_lisp("images");
+  const lisp::Lisp* images;
+#ifdef DEBUG
+  images = reader.get_lisp("editor-images");
   if(images)
     parse_images(*images);
+  else {
+#endif /*DEBUG*/
+    images = reader.get_lisp("images");
+    if(images)
+      parse_images(*images);
+#ifdef DEBUG
+  }
+#endif /*DEBUG*/
 
   correct_attributes();
   return id;