Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2002:
[Freeciv-Dev] Re: heavy AI bug!
Home

[Freeciv-Dev] Re: heavy AI bug!

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jacek Pop?awski <jpopl@xxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: heavy AI bug!
From: Thomas Strub <ue80@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Oct 2002 01:36:31 +0100

On Tue, Oct 29, 2002 at 01:23:10AM +0100, Jacek Pop?awski wrote:
> I see:
> 
> Game: Trajan gave you Map Making!
> 
> every player is getting science from AI without any reason!

Think you played a game with the teamslite10 patch. 

+++ ai/aihand.c 2002/10/25 00:24:59
@@ -355,11 +359,41 @@
 }
 
 /**************************************************************************
- Main AI routine.
+  AI players that are in a team will automatically give away techs.
 **************************************************************************/
+static void ai_team_share_techs(struct player *pplayer)
+{
+  int i;
+
+  players_iterate(aplayer) {
+    if (pplayer->team == aplayer->team) {
+      for (i = 0; i < game.num_tech_types; i++) {

think the condition should be

if ((pplayer->team == aplayer->team) && pplayer->team != TEAM_NONE)


when someone wants to play against teamed up AI's he should create
them and team them or there should be an option "create n teamed AI's"

Thomas
-- 
Thomas Strub  ***  eMail ue80@xxxxxxxxxxxxxxxxxxx
Nur weil das Aufzeichnen, Kopieren und Schnüffeln bei elektronischem 
Datenverkehr leichter als bei der klassischen Post ist, darf man es nicht
einfach tun.


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