projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2807b13
)
Load tilemap when level is in old format.
author
Wolfgang Becker
<uafr@gmx.de>
Sun, 20 Jan 2008 14:45:55 +0000
(14:45 +0000)
committer
Wolfgang Becker
<uafr@gmx.de>
Sun, 20 Jan 2008 14:45:55 +0000
(14:45 +0000)
SVN-Revision: 5289
src/level.cpp
patch
|
blob
|
history
diff --git
a/src/level.cpp
b/src/level.cpp
index
b5ef146
..
e1d26c6
100644
(file)
--- a/
src/level.cpp
+++ b/
src/level.cpp
@@
-77,6
+77,8
@@
Level::load(const std::string& filepath)
int version = 1;
level->get("version", version);
if(version == 1) {
+ log_info << "level uses old format: version 1" << std::endl;
+ tileset = tile_manager->get_tileset("images/tiles.strf");
load_old_format(*level);
return;
}