add embedded license information to all official maps
also add script to generate a summary map license file
new (undocumented) debug commands:
loadmap <mapname>
loads a map directly, easy to use from scripts
debugline <filename> <text>
writes text to file (no path names allowed)
This commit is contained in:
@@ -1875,3 +1875,18 @@ void debugargs(char **args, int numargs)
|
||||
}
|
||||
|
||||
COMMAND(debugargs, "v");
|
||||
|
||||
#ifndef STANDALONE
|
||||
#ifdef _DEBUG
|
||||
void debugline(char *fname, char *line) // print one line to a logfile
|
||||
{
|
||||
if(!multiplayer())
|
||||
{
|
||||
stream *f = openfile(behindpath(fname), "a");
|
||||
if(f) f->printf("%s\n", line);
|
||||
if(f) delete f;
|
||||
}
|
||||
}
|
||||
COMMAND(debugline, "ss");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user