mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
Whoops. I broke looping under some circumstances in GIB. Fixed.
This commit is contained in:
parent
33d132fc4e
commit
7cc9f48207
1 changed files with 5 additions and 7 deletions
|
@ -241,8 +241,12 @@ GIB_Parse_Extract_Line (struct cbuf_s *cbuf)
|
||||||
dstring_snip (dstr, 0, i + (dstr->str[i] == '\n' || dstr->str[i] == ';'));
|
dstring_snip (dstr, 0, i + (dstr->str[i] == '\n' || dstr->str[i] == ';'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
// If this is a looping buffer and it is now empty,
|
||||||
|
// copy the loop program back in
|
||||||
|
if (GIB_DATA(cbuf)->type == GIB_BUFFER_LOOP && !cbuf->buf->str[0])
|
||||||
|
Cbuf_AddText (cbuf, GIB_DATA(cbuf)->loop_program->str);
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -483,11 +487,5 @@ void GIB_Parse_Execute_Line (cbuf_t *cbuf)
|
||||||
} else
|
} else
|
||||||
Cmd_Command (cbuf->args);
|
Cmd_Command (cbuf->args);
|
||||||
dstring_clearstr (cbuf->line);
|
dstring_clearstr (cbuf->line);
|
||||||
|
|
||||||
// If this is a looping buffer and it is now empty,
|
|
||||||
// copy the loop program back in and execute any
|
|
||||||
// loop callbacks
|
|
||||||
if (GIB_DATA(cbuf)->type == GIB_BUFFER_LOOP && !cbuf->buf->str[0])
|
|
||||||
Cbuf_AddText (cbuf, GIB_DATA(cbuf)->loop_program->str);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue