Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Obvious aiunit.c fix.
Home

[Freeciv-Dev] Obvious aiunit.c fix.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Obvious aiunit.c fix.
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Thu, 09 Aug 2001 08:52:24 +0200

I spotted this while going over Ross' patch.  If no one objects, I'll
be committing it in a few hours.

Index: aiunit.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/aiunit.c,v
retrieving revision 1.143
diff -u -r1.143 aiunit.c
--- aiunit.c    2001/07/27 10:01:11     1.143
+++ aiunit.c    2001/08/09 06:40:00
@@ -2299,7 +2299,7 @@
     for (dx = -1; dx <= 1; dx++) {
       for (dy = -1; dy <= 1; dy++) {
        x = map_adjust_x(leader->x + dx);
-       y = map_adjust_x(leader->y + dy);
+       y = map_adjust_y(leader->y + dy);
 
        if (warmap.cost[x][y] > safest
            && can_unit_move_to_tile(leader, x, y, FALSE)) {

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
..  over in west Philadelphia a puppy is vomiting..


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Obvious aiunit.c fix., Gaute B Strokkenes <=