]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_execprogram.h
Deduct frame execution time from sleep time
[xonotic/darkplaces.git] / prvm_execprogram.h
index d9331426cf6e11ee873bf8ab3f34af3f19d6270e..99a8990688682f4b87b44ffd5cf3a74b90fc3365 100644 (file)
@@ -377,11 +377,8 @@ int i;
                                }
                                else
                                {
-                                       if (developer.integer)
-                                       {
-                                               PRE_ERROR();
-                                               VM_Warning(prog, "Attempted division by zero in %s\n", prog->name );
-                                       }
+                                       PRE_ERROR();
+                                       VM_Warning(prog, "Attempted division of %f by zero\n", OPA->_float);
                                        OPC->_float = 0.0f;
                                }
                                DISPATCH_OPCODE();