Fix a big fail in my implementation of CON_DIVR and CON_DIVRU.

git-svn-id: https://svn.eduke32.com/eduke32@7137 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-10-29 06:34:19 +00:00
parent c49ff8696d
commit 696ddec8a8

View file

@ -5295,7 +5295,7 @@ GAMEEXEC_STATIC void VM_Execute(native_t loop)
continue;
}
Gv_SetVarX(tw, tabledivide32((dividend - ksgn(dividend) * klabs(divisor / 2)), divisor));
Gv_SetVarX(tw, tabledivide32((dividend + ksgn(dividend) * klabs(divisor / 2)), divisor));
continue;
}
@ -5313,7 +5313,7 @@ GAMEEXEC_STATIC void VM_Execute(native_t loop)
continue;
}
Gv_SetVarX(tw, tabledivide32((dividend - ksgn(dividend) * klabs(divisor) + 1), divisor));
Gv_SetVarX(tw, tabledivide32((dividend + ksgn(dividend) * klabs(divisor) + 1), divisor));
continue;
}