Complete.Org: Mailing Lists: Archives: freeciv-dev: October 1998:
[Freeciv-Dev] AI default=normal patch
Home

[Freeciv-Dev] AI default=normal patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] AI default=normal patch
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sat, 31 Oct 1998 20:47:10 +1100

This simple patch makes default the same as normal.  (The change to make
default=easy if/when easy is implemented is as trivial.)

Note that if you have a savegame with AIs which are default=hard, then 
after this patch they will still be "default", now meaning the same as 
normal.  So use the server command "hard" at the start of the game or
the first time reloading an older savegame to play vs hard AIs.

-- David
diff -u -r --exclude-from exclude freeciv-cvs/server/stdinhand.c 
freeciv-mod/server/stdinhand.c
--- freeciv-cvs/server/stdinhand.c      Thu Oct 29 20:22:12 1998
+++ freeciv-mod/server/stdinhand.c      Sat Oct 31 16:54:25 1998
@@ -254,7 +254,7 @@
 ***************************************************************/
 int handicap_of_skill_level(int level)
 {
-  int h[11] = { 0, 0, 0, H_RATES+H_TARGETS+H_HUTS,
+  int h[11] = { H_RATES+H_TARGETS+H_HUTS, 0, 0, H_RATES+H_TARGETS+H_HUTS,
                0, H_RATES+H_TARGETS+H_HUTS, 0, 0,
                0, 0, 0 };
   

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] AI default=normal patch, David Pfitzner <=