Skip to content

Commit

Permalink
Clear mapstartonce alias on quit
Browse files Browse the repository at this point in the history
  • Loading branch information
aurhat committed Dec 31, 2014
1 parent 8205f24 commit a78eb73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/src/main.cpp
Expand Up @@ -29,7 +29,8 @@ VAR(resetcfg, 0, 0, 1);

void quit() // normal exit
{
const char *onquit = getalias("onQuit");
const char *mapstartonce = getalias("mapstartonce"), *onquit = getalias("onQuit");
if(mapstartonce && mapstartonce[0]) alias("mapstartonce", "");
if(onquit && onquit[0]) { execute(onquit); alias("onQuit", ""); }
extern void writeinitcfg();
writeinitcfg();
Expand Down

0 comments on commit a78eb73

Please sign in to comment.