Don't use Q3 UI/Cgame without opengl support.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1483 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0ba371677b
commit
1dd25a4c54
1 changed files with 4 additions and 2 deletions
|
@ -1011,7 +1011,6 @@ static long CG_SystemCallsEx(void *offset, unsigned int mask, int fn, const long
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
static long CG_SystemCallsExWrapper(void *offset, unsigned int mask, int fn, const long *arg)
|
static long CG_SystemCallsExWrapper(void *offset, unsigned int mask, int fn, const long *arg)
|
||||||
{ //this is so we can use edit and continue properly (vc doesn't like function pointers for edit+continue)
|
{ //this is so we can use edit and continue properly (vc doesn't like function pointers for edit+continue)
|
||||||
fn*=1;
|
|
||||||
return CG_SystemCallsEx(offset, mask, fn, arg);
|
return CG_SystemCallsEx(offset, mask, fn, arg);
|
||||||
}
|
}
|
||||||
#define CG_SystemCallsEx CG_SystemCallsExWrapper
|
#define CG_SystemCallsEx CG_SystemCallsExWrapper
|
||||||
|
@ -1088,6 +1087,7 @@ void CG_Start (void)
|
||||||
if (qrenderer != QR_OPENGL)
|
if (qrenderer != QR_OPENGL)
|
||||||
{ //sorry.
|
{ //sorry.
|
||||||
CG_Stop();
|
CG_Stop();
|
||||||
|
Host_EndGame("Unable to connect to q3 servers without opengl.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1111,6 +1111,8 @@ void CG_Start (void)
|
||||||
SCR_EndLoadingPlaque();
|
SCR_EndLoadingPlaque();
|
||||||
Host_EndGame("Failed to initialise cgame module\n");
|
Host_EndGame("Failed to initialise cgame module\n");
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
Host_EndGame("Unable to connect to q3 servers without opengl.\n");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1140,7 +1142,7 @@ void CG_Command_f(void)
|
||||||
|
|
||||||
qboolean CG_KeyPress(int key, int down)
|
qboolean CG_KeyPress(int key, int down)
|
||||||
{
|
{
|
||||||
if (!cgvm)
|
if (!cgvm || !(keycatcher&8))
|
||||||
return false;
|
return false;
|
||||||
return VM_Call(cgvm, CG_KEY_EVENT, key, down);
|
return VM_Call(cgvm, CG_KEY_EVENT, key, down);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue