projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed Yeti behaviour. You must stun him (jump on him) when is under a falling stala...
[supertux.git]
/
src
/
level_subset.cpp
diff --git
a/src/level_subset.cpp
b/src/level_subset.cpp
index
5cd4fc9
..
9d1b246
100644
(file)
--- a/
src/level_subset.cpp
+++ b/
src/level_subset.cpp
@@
-102,6
+102,14
@@
void LevelSubset::load(const std::string& subset)
throw new std::runtime_error(msg.str());
}
throw new std::runtime_error(msg.str());
}
+ // test is a worldmap exists
+ has_worldmap = false;
+ std::string worldmap = get_resource_filename(
+ std::string("levels/") + subset + "/worldmap.stwm");
+ if(worldmap != "") {
+ has_worldmap = true;
+ }
+
if (levels.empty())
{ // Level info file doesn't define any levels, so read the
// directory to see what we can find
if (levels.empty())
{ // Level info file doesn't define any levels, so read the
// directory to see what we can find
@@
-175,6
+183,12
@@
LevelSubset::get_level_filename(unsigned int num)
return levels[num];
}
return levels[num];
}
+std::string
+LevelSubset::get_worldmap_filename()
+{
+ return std::string("/levels/" + name + "/worldmap.stwm");
+}
+
int
LevelSubset::get_num_levels() const
{
int
LevelSubset::get_num_levels() const
{