heroes-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Heroes] heroes ./ChangeLog src/plugins/stdai.c


From: Alexandre Duret-Lutz
Subject: [Heroes] heroes ./ChangeLog src/plugins/stdai.c
Date: Fri, 22 Nov 2002 14:32:35 -0500

CVSROOT:        /cvsroot/heroes
Module name:    heroes
Changes by:     Alexandre Duret-Lutz <address@hidden>   02/11/22 14:32:35

Modified files:
        .              : ChangeLog 
        src/plugins    : stdai.c 

Log message:
        * src/plugins/stdai.c: Declare global variables as static.

Patches:
Index: heroes/ChangeLog
diff -u heroes/ChangeLog:1.801 heroes/ChangeLog:1.802
--- heroes/ChangeLog:1.801      Wed Nov 20 16:42:04 2002
+++ heroes/ChangeLog    Fri Nov 22 14:32:35 2002
@@ -1,3 +1,7 @@
+2002-11-22  Alexandre Duret-Lutz  <address@hidden>
+
+       * src/plugins/stdai.c: Declare global variables as static.
+
 2002-11-20  Alexandre Duret-Lutz  <address@hidden>
 
        * m4/htmldoc.m4: s/data_dir/datadir/ otherwise html files
Index: heroes/src/plugins/stdai.c
diff -u heroes/src/plugins/stdai.c:1.8 heroes/src/plugins/stdai.c:1.9
--- heroes/src/plugins/stdai.c:1.8      Mon Apr 29 15:31:52 2002
+++ heroes/src/plugins/stdai.c  Fri Nov 22 14:32:35 2002
@@ -21,20 +21,20 @@
 
 #include "plugin.h"
 
-char ai_max_depth;
-char ai_cur_depth;
-char ai_is_invincible;
-char ai_player;
-a_square_coord ai_target_x, ai_target_y;
-a_square_coord ai_wrap_x, ai_wrap_y;
-char ai_wrap_left, ai_wrap_right;
+static char ai_max_depth;
+static char ai_cur_depth;
+static char ai_is_invincible;
+static char ai_player;
+static a_square_coord ai_target_x, ai_target_y;
+static a_square_coord ai_wrap_x, ai_wrap_y;
+static char ai_wrap_left, ai_wrap_right;
 
-a_u8 *tile_bonus_cpu = 0;
-bool *square_marks = 0;                /* Mark the squares inspected while 
recursing
+static a_u8 *tile_bonus_cpu = 0;
+static bool *square_marks = 0; /* Mark the squares inspected while recursing
                                   around the current position.  */
 
 /* interest of each bonus, for the CPU controled vehicles */
-int bonus_points[2][17] =
+static int bonus_points[2][17] =
 { {20, -15, 15, -10, 5, 18, 19, -10, 0, 0, -5, 50, 5, 0, 8, 0, 25}, /* orchid 
*/
   {-15, 10, 0, 10, 5, -5, 0, 8, 8, -5, 5, -20, -5, 9, -10, 9, -25} /* peach */
 };




reply via email to

[Prev in Thread] Current Thread [Next in Thread]