Fixed loading of old levels w/o backgroundimage
authorChristoph Sommer <mail@christoph-sommer.de>
Tue, 9 Jan 2007 18:18:16 +0000 (18:18 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Tue, 9 Jan 2007 18:18:16 +0000 (18:18 +0000)
SVN-Revision: 4539

src/sector.cpp

index 7ec7720..a8f5018 100644 (file)
@@ -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";