mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
compile fixes for the alpha
This commit is contained in:
parent
c6094b9cea
commit
18ae5b7513
1 changed files with 2 additions and 2 deletions
|
@ -1203,7 +1203,7 @@ static void
|
||||||
call_qc_hook (void *qc_hook)
|
call_qc_hook (void *qc_hook)
|
||||||
{
|
{
|
||||||
*sv_globals.self = EDICT_TO_PROG (&sv_pr_state, sv_player);
|
*sv_globals.self = EDICT_TO_PROG (&sv_pr_state, sv_player);
|
||||||
PR_ExecuteProgram (&sv_pr_state, (func_t)qc_hook);
|
PR_ExecuteProgram (&sv_pr_state, (func_t) (long) qc_hook);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
|
@ -1300,7 +1300,7 @@ PF_AddUserCommand (progs_t *pr)
|
||||||
ucmd_t *cmd;
|
ucmd_t *cmd;
|
||||||
cmd = SV_AddUserCommand (name, call_qc_hook,
|
cmd = SV_AddUserCommand (name, call_qc_hook,
|
||||||
P_INT (pr, 2) ? UCMD_NO_REDIRECT : 0,
|
P_INT (pr, 2) ? UCMD_NO_REDIRECT : 0,
|
||||||
(void *) P_FUNCTION (pr, 1),
|
(void *) (long) P_FUNCTION (pr, 1),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
if (!cmd)
|
if (!cmd)
|
||||||
|
|
Loading…
Reference in a new issue