mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
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:
parent
b02aa43036
commit
597400e0f3
1 changed files with 6 additions and 0 deletions
|
@ -9293,6 +9293,12 @@ static void SaveInHistory(const char *commandstr)
|
|||
{
|
||||
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++)
|
||||
{
|
||||
idx = (scripthistend-i)&(SCRIPTHISTSIZ-1);
|
||||
|
|
Loading…
Reference in a new issue