Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2006:
[Freeciv-Dev] (PR#15260) GTK2: interface quirks being observer
Home

[Freeciv-Dev] (PR#15260) GTK2: interface quirks being observer

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: markstedt@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#15260) GTK2: interface quirks being observer
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Jul 2006 00:35:05 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=15260 >

> [dmarks - Tue Jan 24 08:47:55 2006]:

> - The 'Messages' tab isn't refreshed between turns and notices of
> wonders keep piling up.

Patch attached.

-jason

Index: server/srv_main.c
===================================================================
--- server/srv_main.c   (revision 12162)
+++ server/srv_main.c   (working copy)
@@ -740,6 +740,14 @@
 {
   freelog(LOG_DEBUG, "Endturn");
 
+  /* Hack: because observer players never get an end-phase packet we send
+   * one here.  It would be better perhaps to have a full end-turn packet. */
+  conn_list_iterate(game.est_connections, pconn) {
+    if (!pconn->player) {
+      send_packet_end_phase(pconn);
+    }
+  } conn_list_iterate_end;
+
   map_calculate_borders();
 
   freelog(LOG_DEBUG, "Season of native unrests");

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#15260) GTK2: interface quirks being observer, Jason Short <=