only call Cbuf_ExecuteStack when the buffer has anything to execute. this

gives an ~1.1% boost to overkill.
This commit is contained in:
Bill Currie 2002-05-23 05:42:51 +00:00
parent 33e055209e
commit 25ebab2e09

View file

@ -589,8 +589,11 @@ Cbuf_Execute (void)
}
Cbuf_ExecuteStack (t->cbuf);
}
if (cmd_keybindbuffer->buffer->str[0] || cmd_keybindbuffer->next)
Cbuf_ExecuteStack (cmd_keybindbuffer);
if (cmd_consolebuffer->buffer->str[0] || cmd_consolebuffer->next)
Cbuf_ExecuteStack (cmd_consolebuffer);
if (cmd_legacybuffer->buffer->str[0] || cmd_legacybuffer->next)
Cbuf_ExecuteStack (cmd_legacybuffer);
}