From 0dbecd50c80f9224718a1e5ddad4f2f1aae07892 Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Tue, 9 Jan 2007 18:18:16 +0000 Subject: [PATCH] Fixed loading of old levels w/o backgroundimage SVN-Revision: 4539 --- src/sector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.11.0