From: havoc Date: Mon, 19 Feb 2007 05:53:11 +0000 (+0000) Subject: fix two 'wrong number of parameters' errors X-Git-Tag: xonotic-v0.1.0preview~3551 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5752bb49dac8f030a85cd97f12e23c78734b8cfe;p=xonotic%2Fdarkplaces.git fix two 'wrong number of parameters' errors git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6865 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_cmds.c b/prvm_cmds.c index 887192dd..3e4a4aff 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -3596,7 +3596,9 @@ void VM_changeyaw (void) prvm_edict_t *ent; float ideal, current, move, speed; - VM_SAFEPARMCOUNT(0, VM_changeyaw); + // this is called (VERY HACKISHLY) by SV_MoveToGoal, so it can not use any + // parameters because they are the parameters to SV_MoveToGoal, not this + //VM_SAFEPARMCOUNT(0, VM_changeyaw); ent = PRVM_PROG_TO_EDICT(PRVM_GLOBALFIELDVALUE(prog->globaloffsets.self)->edict); if (ent == prog->edicts) diff --git a/svvm_cmds.c b/svvm_cmds.c index 2a1cb181..9be2ed71 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -963,7 +963,7 @@ VM_SV_checkbottom */ static void VM_SV_checkbottom (void) { - VM_SAFEPARMCOUNT(0, VM_SV_checkbottom); + VM_SAFEPARMCOUNT(1, VM_SV_checkbottom); PRVM_G_FLOAT(OFS_RETURN) = SV_CheckBottom (PRVM_G_EDICT(OFS_PARM0)); }