From ac67a50a9a0350ecc4c675fdbf7f931c706f08d9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 20 Feb 2004 00:25:08 +0000 Subject: [PATCH] handle x % 0 by giving a 0 result --- libs/gamecode/engine/pr_exec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/gamecode/engine/pr_exec.c b/libs/gamecode/engine/pr_exec.c index 31655706d..d9576a662 100644 --- a/libs/gamecode/engine/pr_exec.c +++ b/libs/gamecode/engine/pr_exec.c @@ -229,6 +229,11 @@ signal_hook (int sig, void *data) else OPC.integer_var = 0x7fffffff; return 1; + case OP_MOD_I: + case OP_MOD_U: + case OP_MOD_F: + OPC.integer_var = 0x00000000; + return 1; default: break; }