New Path based on time intervals; see levels/test/platform.stl
[supertux.git] / src / object / platform.cpp
index c0a59a7..8d1a8f3 100644 (file)
@@ -38,7 +38,7 @@ Platform::Platform(const lisp::Lisp& reader)
   reader.get("y", bbox.p1.y);
   reader.get("type", type);
   reader.get("use_path", use_path);
-  sprite = sprite_manager->create("platform");
+  sprite = sprite_manager->create("images/objects/flying_platform/platform.sprite");
   sprite->set_action(type);
   bbox.set_size(sprite->get_width(), sprite->get_height());
 
@@ -49,7 +49,7 @@ Platform::Platform(const lisp::Lisp& reader)
      std::cerr << "Warning: Path for moving platform not found! Make sure that the name is spelled correctly,\nand that the path is initialized before the platform in the level file!\n";
   }
 
-  path_offset = bbox.p1 - path->GetStart();
+  path_offset = bbox.p1;
 }
 
 Platform::~Platform()