From: Christoph Sommer Date: Tue, 9 Jan 2007 18:18:16 +0000 (+0000) Subject: Fixed loading of old levels w/o backgroundimage X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0dbecd50c80f9224718a1e5ddad4f2f1aae07892;p=supertux.git Fixed loading of old levels w/o backgroundimage SVN-Revision: 4539 --- diff --git a/src/sector.cpp b/src/sector.cpp index 7ec772099..a8f501833 100644 --- 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";