mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
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:
parent
46a093faba
commit
0a8ff6a8cf
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue