projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3576043
)
Fixed loading of old levels w/o backgroundimage
author
Christoph Sommer
<mail@christoph-sommer.de>
Tue, 9 Jan 2007 18:18:16 +0000
(18:18 +0000)
committer
Christoph Sommer
<mail@christoph-sommer.de>
Tue, 9 Jan 2007 18:18:16 +0000
(18:18 +0000)
SVN-Revision: 4539
src/sector.cpp
patch
|
blob
|
history
diff --git
a/src/sector.cpp
b/src/sector.cpp
index
7ec7720
..
a8f5018
100644
(file)
--- a/
src/sector.cpp
+++ b/
src/sector.cpp
@@
-227,7
+227,7
@@
Sector::parse_old_format(const lisp::Lisp& reader)
reader.get("gravity", gravity);
std::string backgroundimage;
- if (reader.get("background", backgroundimage)) {
+ if (reader.get("background", backgroundimage)
&& (backgroundimage != "")
) {
if (backgroundimage == "arctis.png") backgroundimage = "arctis.jpg";
if (backgroundimage == "arctis2.jpg") backgroundimage = "arctis.jpg";
if (backgroundimage == "ocean.png") backgroundimage = "ocean.jpg";