{
LevelTile::LevelTile(const std::string& basedir, const lisp::Lisp* lisp)
- : solved(false), auto_path(true), basedir(basedir), picture_cached(false),
+ : solved(false), auto_play(false), basedir(basedir), picture_cached(false),
picture(0)
{
lisp->get("name", name);
lisp->get("x", pos.x);
lisp->get("y", pos.y);
+ lisp->get("auto-play", auto_play);
std::string spritefile = "images/worldmap/common/leveldot.sprite";
lisp->get("sprite", spritefile);
picture_cached = true;
std::string fname = FileSystem::strip_extension(basedir + name)+".jpg";
if (!PHYSFS_exists(fname.c_str())) {
- return 0;
+ return 0;
}
picture = new Surface(fname);
return picture;