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,9 +589,12 @@ Cbuf_Execute (void)
} }
Cbuf_ExecuteStack (t->cbuf); Cbuf_ExecuteStack (t->cbuf);
} }
Cbuf_ExecuteStack (cmd_keybindbuffer); if (cmd_keybindbuffer->buffer->str[0] || cmd_keybindbuffer->next)
Cbuf_ExecuteStack (cmd_consolebuffer); Cbuf_ExecuteStack (cmd_keybindbuffer);
Cbuf_ExecuteStack (cmd_legacybuffer); 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);
} }
/* /*