From b7311291d680008d462747c9ab6ba3f1d6781922 Mon Sep 17 00:00:00 2001 From: div0 Date: Tue, 26 Feb 2008 19:24:40 +0000 Subject: [PATCH] support comments in mapinfo files git-svn-id: svn://svn.icculus.org/nexuiz/trunk@3437 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/common/mapinfo.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/qcsrc/common/mapinfo.qc b/data/qcsrc/common/mapinfo.qc index ac179687c..7e68ae156 100644 --- a/data/qcsrc/common/mapinfo.qc +++ b/data/qcsrc/common/mapinfo.qc @@ -562,7 +562,11 @@ float MapInfo_Get_ByName(string pFilename, float pAllowGenerate, float pGametype if not((s = fgets(fh))) break; t = car(s); s = cdr(s); - if (t == "title") + if(t == "//") + { + // no comment + } + else if(t == "title") MapInfo_Map_title = s; else if(t == "description") MapInfo_Map_description = s; -- 2.39.2