From 0a8ff6a8cf7598d7a91b376a40a5939c9cc12578 Mon Sep 17 00:00:00 2001 From: Brian Koropoff Date: Tue, 3 Dec 2002 05:54:13 +0000 Subject: [PATCH] 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. --- doc/config/gib/cb.gib | 2 +- libs/gib/gib_init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/config/gib/cb.gib b/doc/config/gib/cb.gib index 0e75679d1..568fcb12b 100644 --- a/doc/config/gib/cb.gib +++ b/doc/config/gib/cb.gib @@ -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 } diff --git a/libs/gib/gib_init.c b/libs/gib/gib_init.c index b4aa3ac41..6db55ca49 100644 --- a/libs/gib/gib_init.c +++ b/libs/gib/gib_init.c @@ -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)