mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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
|
||||
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)
|
||||
fn*=1;
|
||||
return CG_SystemCallsEx(offset, mask, fn, arg);
|
||||
}
|
||||
#define CG_SystemCallsEx CG_SystemCallsExWrapper
|
||||
|
@ -1088,6 +1087,7 @@ void CG_Start (void)
|
|||
if (qrenderer != QR_OPENGL)
|
||||
{ //sorry.
|
||||
CG_Stop();
|
||||
Host_EndGame("Unable to connect to q3 servers without opengl.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1111,6 +1111,8 @@ void CG_Start (void)
|
|||
SCR_EndLoadingPlaque();
|
||||
Host_EndGame("Failed to initialise cgame module\n");
|
||||
}
|
||||
#else
|
||||
Host_EndGame("Unable to connect to q3 servers without opengl.\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1140,7 +1142,7 @@ void CG_Command_f(void)
|
|||
|
||||
qboolean CG_KeyPress(int key, int down)
|
||||
{
|
||||
if (!cgvm)
|
||||
if (!cgvm || !(keycatcher&8))
|
||||
return false;
|
||||
return VM_Call(cgvm, CG_KEY_EVENT, key, down);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue