In addition to .gib files, anything exec'ed from within a GIB buffer is now

put in a new buffer on the stack and stripped of comments.  Fixed an
instance of a function name that I forgot to change in cb.gib.
This commit is contained in:
Brian Koropoff 2002-12-03 05:54:13 +00:00
parent 46a093faba
commit 0a8ff6a8cf
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ custom.load.buy_f = {
ifnot ${custom.item.$1} return
i = ${custom.item.$1.menu}
n = ${custom.item.$1.number}
custom.menu.seek $i
custom::menu::seek $i
impulse ($n+1)
wait; wait; wait
}

View file

@ -61,7 +61,7 @@ GIB_Exec_Override_f (void) {
}
if (!Cvar_Command() && (cmd_warncmd->int_val || (developer && developer->int_val)))
Sys_Printf ("execing %s\n", Cmd_Argv (1));
if (!strcmp (Cmd_Argv (1) + strlen (Cmd_Argv(1)) - 4, ".gib")) {
if (!strcmp (Cmd_Argv (1) + strlen (Cmd_Argv(1)) - 4, ".gib") || cbuf_active->interpreter == &gib_interp) {
// GIB script, put it in a new buffer on the stack
cbuf_t *sub = Cbuf_New (&gib_interp);
if (cbuf_active->down)