From 1e11042de099442363eee88c1660dc6e3f8c253d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 22 Oct 2016 02:52:28 +0200 Subject: [PATCH] - changed VM_EPSILON from 1/1024 to 1/65536 so that the ~== operator can actually be used. 1/1024 is far too coarse for ZDoom's purposes, this needs to be at least fixed point precision. --- src/scripting/vm/vm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/vm/vm.h b/src/scripting/vm/vm.h index 8cd63f3e5..b9dafde0c 100644 --- a/src/scripting/vm/vm.h +++ b/src/scripting/vm/vm.h @@ -17,7 +17,7 @@ typedef unsigned int VM_UWORD; typedef signed int VM_SWORD; typedef VM_UBYTE VM_ATAG; -#define VM_EPSILON (1/1024.0) +#define VM_EPSILON (1/65536.0) union VMOP {