X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/f12b51f99bbe8bb6ad7eca12b047ba9b46836ee6..936e4ede6309a8877e3b958abc65cb66fa8323fe:/trek/checkcond.c diff --git a/trek/checkcond.c b/trek/checkcond.c index 9a969d12..a6251099 100644 --- a/trek/checkcond.c +++ b/trek/checkcond.c @@ -1,4 +1,4 @@ -/* $NetBSD: checkcond.c,v 1.5 2003/08/07 09:37:50 agc Exp $ */ +/* $NetBSD: checkcond.c,v 1.7 2009/05/24 21:44:56 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)checkcond.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: checkcond.c,v 1.5 2003/08/07 09:37:50 agc Exp $"); +__RCSID("$NetBSD: checkcond.c,v 1.7 2009/05/24 21:44:56 dholland Exp $"); #endif #endif /* not lint */ @@ -66,7 +66,7 @@ __RCSID("$NetBSD: checkcond.c,v 1.5 2003/08/07 09:37:50 agc Exp $"); */ void -checkcond() +checkcond(void) { /* see if we are still alive and well */ if (Ship.reserves < 0.0) @@ -91,13 +91,11 @@ checkcond() if (Ship.cond == DOCKED) return; - if (Etc.nkling > 0) - { + if (Etc.nkling > 0) { Ship.cond = RED; return; } - if (Ship.energy < Param.energylow) - { + if (Ship.energy < Param.energylow) { Ship.cond = YELLOW; return; }