? diff ? start_turn1.diff Index: client/packhand.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/packhand.c,v retrieving revision 1.195 diff -u -r1.195 packhand.c --- client/packhand.c 2001/10/08 12:14:38 1.195 +++ client/packhand.c 2001/10/16 10:05:58 @@ -691,6 +691,13 @@ /************************************************************************** ... **************************************************************************/ +void handle_start_turn(void) +{ +} + +/************************************************************************** +... +**************************************************************************/ void handle_chat_msg(struct packet_generic_message *packet) { int where = MW_OUTPUT; /* where to display the message */ Index: client/packhand.h =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/packhand.h,v retrieving revision 1.20 diff -u -r1.20 packhand.h --- client/packhand.h 2001/09/16 18:49:44 1.20 +++ client/packhand.h 2001/10/16 10:05:58 @@ -61,6 +61,7 @@ void handle_player_attribute_chunk(struct packet_attribute_chunk *packet); void handle_processing_started(void); void handle_processing_finished(void); +void handle_start_turn(void); void notify_about_incomming_packet(struct connection *pc, int packet_type, int size); Index: common/packets.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/common/packets.c,v retrieving revision 1.165 diff -u -r1.165 packets.c --- common/packets.c 2001/10/12 12:22:18 1.165 +++ common/packets.c 2001/10/16 10:06:03 @@ -366,6 +366,7 @@ case PACKET_BEFORE_NEW_YEAR: case PACKET_PROCESSING_STARTED: case PACKET_PROCESSING_FINISHED: + case PACKET_START_TURN: return receive_packet_generic_empty(pc); case PACKET_NEW_YEAR: Index: common/packets.h =================================================================== RCS file: /home/freeciv/CVS/freeciv/common/packets.h,v retrieving revision 1.97 diff -u -r1.97 packets.h --- common/packets.h 2001/10/12 12:22:19 1.97 +++ common/packets.h 2001/10/16 10:06:04 @@ -124,6 +124,7 @@ PACKET_PLAYER_ATTRIBUTE_BLOCK, PACKET_PROCESSING_STARTED, PACKET_PROCESSING_FINISHED, + PACKET_START_TURN, PACKET_LAST /* leave this last */ }; Index: server/gamehand.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/server/gamehand.c,v retrieving revision 1.97 diff -u -r1.97 gamehand.c --- server/gamehand.c 2001/09/27 22:49:53 1.97 +++ server/gamehand.c 2001/10/16 10:06:05 @@ -150,6 +150,13 @@ improvement_status_init(game.improvements); } +/************************************************************************** +... +**************************************************************************/ +void send_start_turn_to_clients(void) +{ + lsend_packet_generic_empty(&game.est_connections, PACKET_START_TURN); +} /************************************************************************** Tell clients the year, and also update turn_done and nturns_idle fields Index: server/gamehand.h =================================================================== RCS file: /home/freeciv/CVS/freeciv/server/gamehand.h,v retrieving revision 1.8 diff -u -r1.8 gamehand.h --- server/gamehand.h 2000/08/25 20:15:29 1.8 +++ server/gamehand.h 2001/10/16 10:06:05 @@ -20,5 +20,6 @@ void send_year_to_clients(int year); void send_game_info(struct conn_list *dest); void send_game_state(struct conn_list *dest, int state); +void send_start_turn_to_clients(void); #endif /* FC__GAMEHAND_H */ Index: server/srv_main.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/server/srv_main.c,v retrieving revision 1.51 diff -u -r1.51 srv_main.c --- server/srv_main.c 2001/10/05 09:35:36 1.51 +++ server/srv_main.c 2001/10/16 10:06:06 @@ -1678,6 +1678,7 @@ shuffle_players(); freelog(LOG_DEBUG, "Aistartturn"); ai_start_turn(); + send_start_turn_to_clients(); /* Before sniff (human player activites), report time to now: */ freelog(LOG_VERBOSE, "End/start-turn server/ai activities: %g seconds",