From d20fa1517fd26a740ff30131a7e42552eb53916e Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sun, 13 Jan 2013 21:06:12 +0100 Subject: [PATCH] fixing this... --- prvm_exec.c | 1 - prvm_execprogram.h | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 ) { -- 2.39.2