mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Quake3 cgame stuff should run a little bit longer now (depending on the mod...).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2108 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
629834c8a6
commit
66b5d2a468
1 changed files with 15 additions and 1 deletions
|
@ -27,6 +27,9 @@ void GLDraw_ShaderImage (int x, int y, int w, int h, float s1, float t1, float s
|
||||||
|
|
||||||
#define CGTAGNUM 5423
|
#define CGTAGNUM 5423
|
||||||
|
|
||||||
|
#define VM_FROMHANDLE(a) ((void*)a)
|
||||||
|
#define VM_TOHANDLE(a) ((int)a)
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CG_PRINT,
|
CG_PRINT,
|
||||||
CG_ERROR,
|
CG_ERROR,
|
||||||
|
@ -845,8 +848,11 @@ static long CG_SystemCallsEx(void *offset, unsigned int mask, int fn, const long
|
||||||
|
|
||||||
case CG_S_ADDLOOPINGSOUND:
|
case CG_S_ADDLOOPINGSOUND:
|
||||||
break;
|
break;
|
||||||
|
case CG_S_STOPLOOPINGSOUND:
|
||||||
|
break;
|
||||||
|
|
||||||
case CG_S_STARTBACKGROUNDTRACK:
|
case CG_S_STARTBACKGROUNDTRACK:
|
||||||
|
case CG_S_STOPBACKGROUNDTRACK:
|
||||||
case CG_S_CLEARLOOPINGSOUNDS:
|
case CG_S_CLEARLOOPINGSOUNDS:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -868,6 +874,14 @@ static long CG_SystemCallsEx(void *offset, unsigned int mask, int fn, const long
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CG_KEY_GETKEY:
|
||||||
|
{
|
||||||
|
int ret[2];
|
||||||
|
M_FindKeysForCommand (VM_POINTER(arg[0]), ret);
|
||||||
|
return ret[0];
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case CG_KEY_GETCATCHER:
|
case CG_KEY_GETCATCHER:
|
||||||
VM_LONG(ret) = keycatcher;
|
VM_LONG(ret) = keycatcher;
|
||||||
break;
|
break;
|
||||||
|
@ -1001,7 +1015,7 @@ static long CG_SystemCallsEx(void *offset, unsigned int mask, int fn, const long
|
||||||
UI_RegisterFont(VM_POINTER(arg[0]), VM_LONG(arg[1]), VM_POINTER(arg[2]));
|
UI_RegisterFont(VM_POINTER(arg[0]), VM_LONG(arg[1]), VM_POINTER(arg[2]));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Host_EndGame("Q3CG: Bad system trap: %d\n", fn);
|
Con_Printf("Q3CG: Bad system trap: %d\n", fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue