From b8dce3698624f02a90d3120a57c399d141e00fc2 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 31 Mar 2009 18:48:16 +0000 Subject: Avoid hardcoded "too large" constant that caused FPE on the vax. XXX: Should pullup to 5.0 --- trek/help.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'trek/help.c') diff --git a/trek/help.c b/trek/help.c index b1150e3a..5cf90d5b 100644 --- a/trek/help.c +++ b/trek/help.c @@ -1,4 +1,4 @@ -/* $NetBSD: help.c,v 1.8 2007/12/15 19:44:44 perry Exp $ */ +/* $NetBSD: help.c,v 1.9 2009/03/31 18:48:16 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,13 +34,14 @@ #if 0 static char sccsid[] = "@(#)help.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: help.c,v 1.8 2007/12/15 19:44:44 perry Exp $"); +__RCSID("$NetBSD: help.c,v 1.9 2009/03/31 18:48:16 christos Exp $"); #endif #endif /* not lint */ #include #include #include +#include #include "trek.h" /* @@ -96,7 +97,7 @@ help(v) Game.helps += 1; /* find the closest base */ - dist = 1e50; + dist = TOOLARGE; if (Quad[Ship.quadx][Ship.quady].bases <= 0) { /* there isn't one in this quadrant */ -- cgit v1.2.3-56-ge451