1
0
Fork 0
forked from fte/fteqw

Improve robustness with weird build configs.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6239 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2022-05-28 17:58:27 +00:00
parent 9824304aa5
commit e0f3c35414
3 changed files with 9 additions and 2 deletions

View file

@ -374,6 +374,7 @@ static void QDECL Plug_Draw_RedrawScreen(void)
SCR_UpdateScreen();
}
#ifdef HAVE_MEDIA_DECODER
static void QDECL Plug_Media_SetState(cin_t *cin, int state)
{
Media_SetState(cin, state);
@ -382,6 +383,7 @@ static int QDECL Plug_Media_GetState(cin_t *cin)
{
return Media_GetState(cin);
}
#endif
static qhandle_t Plug_Scene_ModelToId(model_t *mod)
{

View file

@ -3682,7 +3682,7 @@ static void S_Q2_AddEntitySounds(soundcardinfo_t *sc)
else
#endif
#ifdef VM_CG
if (cls.protocol == CP_QUAKE3)
if (cls.protocol == CP_QUAKE3 && q3)
count = q3->cg.GatherLoopingSounds(positions, entnums, sounds, countof(sounds));
else
#endif

View file

@ -1749,5 +1749,10 @@ qboolean Plug_Init(void)
UI_Init();
return true;
}
#else
qboolean Plug_Init(void)
{
Con_Printf("Quake3 plugin without any support...\n");
return false;
}
#endif