Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: SIGFPE in x11.c
- To: crossfire (at) ifi.uio.no
- Subject: CF: SIGFPE in x11.c
- From: (Preston F. Crow)
- Date: 18 Dec 98 11:27:03 EST
- Reply-To: crow
- Sender:
I'm getting a SIGFPE on line 1195 of x11.c. I'm running non-GTK under
FreeBSD. It looks like the problem is that the weap_sp is being computed
there (instead of above due to compiler optimizations), and
cpl.stats.weapon_sp is zero. Hence, a divide by zero.
My quick fix is to check the value of weapon_sp and to set weap_sp to zero
if it is zero instead of doing the division.
I'm still having some problems, but that gets it so that the client will
at least not fault immediately.
--PC
-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to ]