X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/634cb6ceab3191623a3daed5e953821e3f37a4cb..dd096191dcfacdcbd63dabb28e4aeb1c79cfafae:/trek/move.c diff --git a/trek/move.c b/trek/move.c index a73d575f..d1941b53 100644 --- a/trek/move.c +++ b/trek/move.c @@ -1,4 +1,4 @@ -/* $NetBSD: move.c,v 1.4 1997/10/12 21:25:02 christos Exp $ */ +/* $NetBSD: move.c,v 1.6 2003/08/07 09:37:52 agc Exp $ */ /* * Copyright (c) 1980, 1993 @@ -12,11 +12,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -38,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: move.c,v 1.4 1997/10/12 21:25:02 christos Exp $"); +__RCSID("$NetBSD: move.c,v 1.6 2003/08/07 09:37:52 agc Exp $"); #endif #endif /* not lint */ @@ -186,13 +182,13 @@ double speed; Ship.quady = iy / NSECTS; Ship.sectx = ix % NSECTS; Ship.secty = iy % NSECTS; - if (ix < 0 || Ship.quadx >= NQUADS || iy < 0 || Ship.quady >= NQUADS) - if (!damaged(COMPUTER)) - { + if (ix < 0 || Ship.quadx >= NQUADS || iy < 0 || + Ship.quady >= NQUADS) { + if (!damaged(COMPUTER)) { dumpme(0); - } - else + } else lose(L_NEGENB); + } initquad(0); n = 0; break;