From: Wolfgang Bumiller Date: Sun, 13 Jan 2013 20:06:12 +0000 (+0100) Subject: fixing this... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2Fblub%2Fmul-vf;p=xonotic%2Fdarkplaces.git fixing this... --- diff --git a/prvm_exec.c b/prvm_exec.c index 42eee2ec..f2ad83ed 100644 --- a/prvm_exec.c +++ b/prvm_exec.c @@ -672,7 +672,6 @@ void MVM_ExecuteProgram (prvm_prog_t *prog, func_t fnum, const char *errormessag int restorevm_tempstringsbuf_cursize; double calltime; double tm, starttm; - double tempfloat; calltime = Sys_DirtyTime(); diff --git a/prvm_execprogram.h b/prvm_execprogram.h index 393a7826..d445cb37 100644 --- a/prvm_execprogram.h +++ b/prvm_execprogram.h @@ -47,17 +47,21 @@ OPC->_float = OPA->vector[0]*OPB->vector[0] + OPA->vector[1]*OPB->vector[1] + OPA->vector[2]*OPB->vector[2]; break; case OP_MUL_FV: - tempfloat = OPA->_float; + { + prvm_vec_t tempfloat = OPA->_float; OPC->vector[0] = tempfloat * OPB->vector[0]; OPC->vector[1] = tempfloat * OPB->vector[1]; OPC->vector[2] = tempfloat * OPB->vector[2]; break; + } case OP_MUL_VF: - tempfloat = OPB->_float; + { + prvm_vec_t tempfloat = OPA->_float; OPC->vector[0] = tempfloat * OPA->vector[0]; OPC->vector[1] = tempfloat * OPA->vector[1]; OPC->vector[2] = tempfloat * OPA->vector[2]; break; + } case OP_DIV_F: if( OPB->_float != 0.0f ) {