diff options
author | christos <christos@NetBSD.org> | 2009-03-31 18:48:16 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2009-03-31 18:48:16 +0000 |
commit | b8dce3698624f02a90d3120a57c399d141e00fc2 (patch) | |
tree | ca2bac30b0aa045143b1ed99a8e5e7ca5645b9b5 /trek/kill.c | |
parent | df25e08ef3bbcd6e7f205249eaaaf44635eb266e (diff) | |
download | bsdgames-darwin-b8dce3698624f02a90d3120a57c399d141e00fc2.tar.gz bsdgames-darwin-b8dce3698624f02a90d3120a57c399d141e00fc2.tar.zst bsdgames-darwin-b8dce3698624f02a90d3120a57c399d141e00fc2.zip |
Avoid hardcoded "too large" constant that caused FPE on the vax.
XXX: Should pullup to 5.0
Diffstat (limited to 'trek/kill.c')
-rw-r--r-- | trek/kill.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/trek/kill.c b/trek/kill.c index 053f1dbb..1d8f6130 100644 --- a/trek/kill.c +++ b/trek/kill.c @@ -1,4 +1,4 @@ -/* $NetBSD: kill.c,v 1.7 2003/08/07 09:37:52 agc Exp $ */ +/* $NetBSD: kill.c,v 1.8 2009/03/31 18:48:16 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,11 +34,12 @@ #if 0 static char sccsid[] = "@(#)kill.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: kill.c,v 1.7 2003/08/07 09:37:52 agc Exp $"); +__RCSID("$NetBSD: kill.c,v 1.8 2009/03/31 18:48:16 christos Exp $"); #endif #endif /* not lint */ #include <stdio.h> +#include <limits.h> #include "trek.h" /* @@ -138,7 +139,7 @@ int qx, qy; printf(" quadrant %d,%d has been destroyed\n", qx, qy); } else - schedule(E_KATSB | E_GHOST, 1e50, qx, qy, 0); + schedule(E_KATSB | E_GHOST, TOOLARGE, qx, qy, 0); } } |