mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-07 07:41:09 +00:00
Fix q3plug-related crashes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6220 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
7e67f46482
commit
29f9d620f9
2 changed files with 2 additions and 2 deletions
|
@ -2499,7 +2499,7 @@ void *SCR_ScreenShot_Capture(int fbwidth, int fbheight, int *stride, enum upload
|
||||||
R2D_FillBlock(0, 0, vid.fbvwidth, vid.fbvheight);
|
R2D_FillBlock(0, 0, vid.fbvwidth, vid.fbvheight);
|
||||||
|
|
||||||
#ifdef VM_CG
|
#ifdef VM_CG
|
||||||
if (!okay && q3->cg.Redraw(cl.time))
|
if (!okay && q3 && q3->cg.Redraw(cl.time))
|
||||||
okay = true;
|
okay = true;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CSQC_DAT
|
#ifdef CSQC_DAT
|
||||||
|
|
|
@ -1189,7 +1189,7 @@ MSV_OpenUserDatabase();
|
||||||
SVHL_ShutdownGame();
|
SVHL_ShutdownGame();
|
||||||
#endif
|
#endif
|
||||||
#ifdef Q3SERVER
|
#ifdef Q3SERVER
|
||||||
if (newgametype != GT_QUAKE3)
|
if (newgametype != GT_QUAKE3 && q3)
|
||||||
q3->sv.ShutdownGame(false);
|
q3->sv.ShutdownGame(false);
|
||||||
#endif
|
#endif
|
||||||
#ifdef Q2SERVER
|
#ifdef Q2SERVER
|
||||||
|
|
Loading…
Reference in a new issue