Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2006:
[Freeciv-Dev] (PR#15852) show all messages in pregame
Home

[Freeciv-Dev] (PR#15852) show all messages in pregame

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#15852) show all messages in pregame
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Mar 2006 21:09:14 -0800
Reply-to: bugs@xxxxxxxxxxx

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

There is a bug in the client causing messages to be lost.  A message 
with an event type may be shown to the messages dialog or a popup 
instead of to the chatline.  But if you are in pregame, there is no 
messages dialog, so such a message would simply be lost.

This patch fixes it by showing all messages to the chatline in pregmae.

-jason

Index: client/climisc.c
===================================================================
--- client/climisc.c    (revision 11759)
+++ client/climisc.c    (working copy)
@@ -881,7 +881,8 @@
     where = messages_where[event];
   }
 
-  if (BOOL_VAL(where & MW_OUTPUT)) {
+  if (BOOL_VAL(where & MW_OUTPUT)
+      || get_client_state() != CLIENT_GAME_RUNNING_STATE) {
     append_output_window_full(message, conn_id);
   }
   if (BOOL_VAL(where & MW_MESSAGES)) {

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#15852) show all messages in pregame, Jason Short <=