summaryrefslogtreecommitdiff
path: root/src/mathline.c
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-08-12 02:30:17 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commitde3fda828dae5015dcadb7018188f80a4f265dcb (patch)
tree4474b8f156c5796d247efb80bcabb70194002f6e /src/mathline.c
parentae2906ca8302cd41f05582232799b35e0b05414d (diff)
Fixed particle colors for real this time.
Worked around a crash (DIV_FIXED by zero) that happens when the Alien level FERARCO starts.
Diffstat (limited to 'src/mathline.c')
-rw-r--r--src/mathline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mathline.c b/src/mathline.c
index 7879f95..2adfc09 100644
--- a/src/mathline.c
+++ b/src/mathline.c
@@ -394,6 +394,8 @@ __asm__("imull %%edx \n\t"
int DIV_FIXED(int a, int b)
{
int retval;
+
+ if (b == 0) return 0; /* TODO: debug this! (start with alien on ferarco) */
/*
_asm
{