-/* $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
* 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.
*
#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 */
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;