[Freeciv-Dev] (PR#8840) don't call ai_data_turn_done from server code
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#8840) don't call ai_data_turn_done from server code |
From: |
"Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx> |
Date: |
Tue, 25 May 2004 21:18:19 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8840 >
ai_data_turn_done should be called from ai_do_last_activities. This
means there are only 3 entry points into the AI from the server main loop.
Autogames are unchanged.
jason
? convert.sh
? ferries
? flags
? new
? output
? client/output
? data/flags
Index: ai/aihand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/aihand.c,v
retrieving revision 1.87
diff -u -r1.87 aihand.c
--- ai/aihand.c 20 Sep 2003 19:24:54 -0000 1.87
+++ ai/aihand.c 26 May 2004 04:11:12 -0000
@@ -319,6 +319,7 @@
ai_manage_cities(pplayer);
ai_manage_tech(pplayer);
ai_manage_spaceship(pplayer);
+ ai_data_turn_done(pplayer);
}
/**************************************************************************
Index: server/srv_main.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/srv_main.c,v
retrieving revision 1.161
diff -u -r1.161 srv_main.c
--- server/srv_main.c 25 May 2004 00:33:16 -0000 1.161
+++ server/srv_main.c 26 May 2004 04:11:13 -0000
@@ -510,7 +510,6 @@
nocity_send = FALSE;
players_iterate(pplayer) {
send_player_cities(pplayer);
- ai_data_turn_done(pplayer);
} players_iterate_end;
flush_packets(); /* to curb major city spam */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#8840) don't call ai_data_turn_done from server code,
Jason Short <=
|
|