Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10654) /away still makes alliances
Home

[Freeciv-Dev] (PR#10654) /away still makes alliances

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#10654) /away still makes alliances
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Fri, 22 Oct 2004 04:45:43 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10654 >

> [jdorje - Thu Oct 21 00:02:56 2004]:
> 
> /list: Lee Teng Hui (user michael, AI, difficulty level away, nation 
> Taiwanese) 1 connection:
> /list:   michael from 
> CPE00608c86a77d-CM00e06f1f5286.cpe.net.cable.rogers.com (command
> 
> Yet this AI player just signed an alliance with me...
> 
> jason
> 
The worst thing is that away level hasn't got H_RATES handicap. 
Attached patch should fix it.
--
mateusz
Index: server/stdinhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/stdinhand.c,v
retrieving revision 1.354.2.4
diff -u -r1.354.2.4 stdinhand.c
--- server/stdinhand.c  9 Oct 2004 21:41:52 -0000       1.354.2.4
+++ server/stdinhand.c  22 Oct 2004 11:44:07 -0000
@@ -666,7 +666,7 @@
 static int handicap_of_skill_level(int level)
 {
   int h[11] = { -1,
-               H_AWAY,
+ /* away   */  H_AWAY  | H_RATES,
  /* novice */   H_RATES | H_TARGETS | H_HUTS | H_NOPLANES 
                         | H_DIPLOMAT | H_LIMITEDHUTS | H_DEFENSIVE
                        | H_DIPLOMACY,

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