[Freeciv-Dev] Re: heavy AI bug!
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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.
|
|