]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/bestpath.c
Update copyright notice.
[empserver] / src / lib / common / bestpath.c
index 74d8332b909c763204f6d8a766179b5524a810d0..569dc873b009a3b08b47b8003fa1c9ff3ced8d57 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2004, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -109,7 +109,6 @@ static int owned_and_navigable(s_char *, int, int, s_char *, int);
 s_char *dirchar = "juygbn";
 int dx[6] = { 2, 1, -1, -2, -1, 1 };
 int dy[6] = { 0, -1, -1, 0, 1, 1 };
-int tmp;
 
 /*
  * Ok, note that here we malloc some buffers.  BUT, we never
@@ -204,8 +203,8 @@ bestownedpath(s_char *bpath,
                            tx = XNORM(tx);
                            ty = YNORM(ty);
                            if (mapindex[tx][ty] == 0xFFFF) {
-                               if (owned_and_navigable
-                                   (bigmap, tx, ty, terrain, own)
+                               if (owned_and_navigable(bigmap, tx, ty,
+                                                       terrain, own)
                                    || (tx == ex && ty == ey && !restr2)) {
                                    mapindex[tx][ty] =
                                        ((i + 1) << 13) + routelen;