]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - trek/move.c
Fix bogus conditional caught by today's make. It looks as if MKHIDEGAME
[bsdgames-darwin.git] / trek / move.c
index a73d575f0858ae7e48998e8fefb449e2c97df426..d1941b53e738240a9ff45758a89752253f977f97 100644 (file)
@@ -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
  * 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;