add a map license and comment string to the map header

Two new string variables, mapinfo_license and mapinfo_comment, are stored
withing the header of a map file.

The variables are automatically read and written during loading and
saving maps. Default values are empty strings. The comment string is
ignored, as long as no license string is set. The license string is meant
to hold an abbreviated name of the license, picked from a list of
known map licenses.

DOCREF mapinfo_license mapinfo_comment
This commit is contained in:
ac-stef
2016-07-26 15:41:40 +02:00
parent 13ec9d692f
commit a860cc58b0
4 changed files with 36 additions and 0 deletions
+1
View File
@@ -1085,6 +1085,7 @@ void resetmap(bool mrproper)
deleted_ents.setsize(0);
pinnedclosestent = false;
particlereset();
setmapinfo("", "");
if(mrproper)
{
audiomgr.clearworldsounds();