Code: Select all
// ***************************************************************************
// Function: EndMacro
// Description: Our '/endmacro' command
// Usage: /endmacro
// ***************************************************************************
VOID EndMacro(PSPAWNINFO pChar, PCHAR szLine)
{
CHAR Buffer[MAX_STRING] = {0};
DWORD i;
PMACROBLOCK pPrev;
PMACROSTACK pStack;
PEVENTSTACK pEvent;
PEVENTLIST pEventL;
BOOL bKeepKeys = gKeepKeys;
[color=red]BOOL bKeepVars = TRUE;[/color]
BOOL bKeepTimers = FALSE;
BOOL bKeepArrays = FALSE;
Is this an oversight? I know it wasn't working like this before. I noticed because suddenly my macros were spewing a lot of "Variable so-and-so already defined" or something like that, when I stopped and restarted them.
Yes, I know you can pass arguments to /endmacro to keep or not keep arrays, vars, timers... but I was wondering why the default was changed, whether it was on purpose.
*Edit: funky BBCode end tag


