r3437 - trunk/data/qcsrc/common

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Feb 26 14:24:40 EST 2008


Author: div0
Date: 2008-02-26 14:24:40 -0500 (Tue, 26 Feb 2008)
New Revision: 3437

Modified:
   trunk/data/qcsrc/common/mapinfo.qc
Log:
support comments in mapinfo files


Modified: trunk/data/qcsrc/common/mapinfo.qc
===================================================================
--- trunk/data/qcsrc/common/mapinfo.qc	2008-02-26 19:20:03 UTC (rev 3436)
+++ trunk/data/qcsrc/common/mapinfo.qc	2008-02-26 19:24:40 UTC (rev 3437)
@@ -562,7 +562,11 @@
 		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;




More information about the nexuiz-commits mailing list