r3325 - trunk/data/qcsrc/common
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Jan 31 15:19:10 EST 2008
Author: div0
Date: 2008-01-31 15:19:09 -0500 (Thu, 31 Jan 2008)
New Revision: 3325
Modified:
trunk/data/qcsrc/common/mapinfo.qc
Log:
change placeholders to <TITLE>, <AUTHOR>, <DESCRIPTION>; add worldspawn._description field for mapinfo detection
Modified: trunk/data/qcsrc/common/mapinfo.qc
===================================================================
--- trunk/data/qcsrc/common/mapinfo.qc 2008-01-31 11:51:12 UTC (rev 3324)
+++ trunk/data/qcsrc/common/mapinfo.qc 2008-01-31 20:19:09 UTC (rev 3325)
@@ -356,10 +356,12 @@
inWorldspawn = 1;
else if(k == "author")
MapInfo_Map_author = v;
+ else if(k == "_description")
+ MapInfo_Map_description = v;
else if(k == "message")
{
i = strstrofs(v, " by ", 0);
- if(MapInfo_Map_author == "He-Who-Must-Not-Be-Named" && i >= 0)
+ if(MapInfo_Map_author == "<AUTHOR>" && i >= 0)
{
MapInfo_Map_title = substring(v, 0, i);
MapInfo_Map_author = substring(v, i + 4, strlen(v) - (i + 4));
@@ -444,9 +446,9 @@
void _MapInfo_Map_Reset()
{
- MapInfo_Map_title = "Untitled1";
- MapInfo_Map_description = "Bleh.";
- MapInfo_Map_author = "He-Who-Must-Not-Be-Named";
+ MapInfo_Map_title = "<TITLE>";
+ MapInfo_Map_description = "<DESCRIPTION>";
+ MapInfo_Map_author = "<AUTHOR>";
MapInfo_Map_supportedGametypes = 0;
MapInfo_Map_supportedFeatures = 0;
MapInfo_Map_diameter = 0;
More information about the nexuiz-commits
mailing list