]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/bestpath.c
Update copyright notice
[empserver] / src / lib / common / bestpath.c
index 97c8b15ff07bd2c524a7d4e30eecde7d8d1258c2..5003082aa589ae1a45f6df290742022f47fda804 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -142,7 +142,7 @@ bestownedpath(char *bpath, char *bigmap,
                if (!valid(x, y))
                    continue;
                if (((mapindex[x][y] & 0x1FFF) == routelen - 1)) {
-                   for (i = DIR_FIRST; i < DIR_LAST; i++) {
+                   for (i = DIR_FIRST; i <= DIR_LAST; i++) {
                        tx = x + diroff[i][0];
                        ty = y + diroff[i][1];
                        tx = XNORM(tx);