Fixed Tux picking up dead BadGuys: Will no longer pick up objects in collision group...
[supertux.git] / src / tile.cpp
index fa0b834..c45f79c 100644 (file)
@@ -20,8 +20,8 @@
 //  02111-1307, USA.
 #include <config.h>
 
-#include <cmath>
-#include <cassert>
+#include <math.h>
+#include <assert.h>
 #include <iostream>
 #include <stdexcept>
 
@@ -73,6 +73,8 @@ Tile::parse(const lisp::Lisp& reader)
     attributes |= WATER;
   if(reader.get("hurts", value) && value)
     attributes |= HURTS;
+  if(reader.get("fire", value) && value)
+    attributes |= FIRE;
   if(reader.get("fullbox", value) && value)
     attributes |= FULLBOX;
   if(reader.get("coin", value) && value)
@@ -114,7 +116,8 @@ Tile::parse_images(const lisp::Lisp& images_lisp)
       cur->get(file);
       imagespecs.push_back(ImageSpec(file, Rect(0, 0, 0, 0)));
     } else if(cur->get_type() == lisp::Lisp::TYPE_CONS &&
-        cur->get_car()->get_type() == lisp::Lisp::TYPE_SYMBOL) {
+                                 cur->get_car()->get_type() == lisp::Lisp::TYPE_SYMBOL &&
+              cur->get_car()->get_symbol() == "region") {
       const lisp::Lisp* ptr = cur->get_cdr();
 
       std::string file;