]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fixing this... blub/mul-vf
authorWolfgang Bumiller <blub@speed.at>
Sun, 13 Jan 2013 20:06:12 +0000 (21:06 +0100)
committerWolfgang Bumiller <blub@speed.at>
Sun, 13 Jan 2013 20:06:12 +0000 (21:06 +0100)
prvm_exec.c
prvm_execprogram.h

index 42eee2ec265a91c67551bce13292b28472b8e6d7..f2ad83edf459fed77e436b8972c065e9a5195fdf 100644 (file)
@@ -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();
 
index 393a782669c037ac3783838f57ba1ccacd644b69..d445cb37113824affa20d3c98365ccafb2ec4ed2 100644 (file)
                                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 )
                                {