mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 06:32:00 +00:00
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:
parent
9824304aa5
commit
e0f3c35414
3 changed files with 9 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue