Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10789) Can't open diplomacy dialog after /aitogle back
Home

[Freeciv-Dev] (PR#10789) Can't open diplomacy dialog after /aitogle back

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10789) Can't open diplomacy dialog after /aitogle back to human mode
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Sat, 30 Oct 2004 01:44:55 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10789 >

Sometimes the user cannot open diplomacy dialog after aitoggling himself
back into human mode. The cause is the same as in PR#10720
This patch should help.
--
mateusz
Index: server/stdinhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/stdinhand.c,v
retrieving revision 1.364
diff -u -r1.364 stdinhand.c
--- server/stdinhand.c  29 Oct 2004 12:37:58 -0000      1.364
+++ server/stdinhand.c  30 Oct 2004 08:43:54 -0000
@@ -779,6 +779,9 @@
     if (!game.is_new_game) {
       check_player_government_rates(pplayer);
     }
+    /* Remove hidden dialogs from clients. This way the player can initiate
+     * new meeting */
+    cancel_all_meetings(pplayer);
   }
 
   if (server_state == RUN_GAME_STATE) {

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10789) Can't open diplomacy dialog after /aitogle back to human mode, Mateusz Stefek <=