mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
Avoid csqc crashes from setorigin etc.
Also avoid issues from csqc errors while scissor is enabled.
This commit is contained in:
parent
b215f29226
commit
f166000a04
1 changed files with 4 additions and 0 deletions
|
@ -171,6 +171,8 @@ void Host_Error (const char *error, ...)
|
|||
Sys_Error ("Host_Error: recursively entered");
|
||||
inerror = true;
|
||||
|
||||
if (cl.qcvm.progs)
|
||||
glDisable(GL_SCISSOR_TEST); //equivelent to drawresetcliparea, to reset any damage if we crashed in csqc.
|
||||
PR_SwitchQCVM(NULL);
|
||||
|
||||
SCR_EndLoadingPlaque (); // reenable screen updates
|
||||
|
@ -776,6 +778,8 @@ void _Host_Frame (double time)
|
|||
*qcvm->extglobals.player_localnum = cl.viewentity; //this is a guess, but is important for scoreboards.
|
||||
|
||||
//and call the init function... if it exists.
|
||||
qcvm->worldmodel = cl.worldmodel;
|
||||
SV_ClearWorld();
|
||||
if (qcvm->extfuncs.CSQC_Init)
|
||||
{
|
||||
G_FLOAT(OFS_PARM0) = 0;
|
||||
|
|
Loading…
Reference in a new issue