From 43286fc88082dca938c240e0e629a583280016d0 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 24 Apr 2005 03:58:12 +0000 Subject: Add additional check for comments with (). Required for map.ini file included with mustard. svn-id: r17783 --- common/config-file.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/config-file.cpp b/common/config-file.cpp index 877beafce7..daaf068955 100644 --- a/common/config-file.cpp +++ b/common/config-file.cpp @@ -94,6 +94,11 @@ bool ConfigFile::loadFromStream(SeekableReadStream &stream) { // of the 'comment' variable with that entity. comment += buf; comment += "\n"; + } else if (buf[0] == '(') { + // Special case for map.ini included in mustard + // Includes comment within () on the first line + comment += buf; + comment += "\n"; } else if (buf[0] == '[') { // It's a new section which begins here. char *p = buf + 1; -- cgit v1.2.3