Mapster32: don't save comments to mapster32.cfg's command-line history.

git-svn-id: https://svn.eduke32.com/eduke32@4348 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-02-22 19:38:48 +00:00
parent b02aa43036
commit 597400e0f3
1 changed files with 6 additions and 0 deletions

View File

@ -9293,6 +9293,12 @@ static void SaveInHistory(const char *commandstr)
{ {
int32_t i, idx, dosave=1; int32_t i, idx, dosave=1;
// If running with osdtryscript=1, we could receive e.g.
// "// this file is automatically generated by Mapster32"
// from m32_config.cfg here.
if (!Bstrncmp(commandstr, "//", 2))
return;
for (i=1; i<=4; i++) for (i=1; i<=4; i++)
{ {
idx = (scripthistend-i)&(SCRIPTHISTSIZ-1); idx = (scripthistend-i)&(SCRIPTHISTSIZ-1);