Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] Re: (PR#11192) CMA detaches after revolution
Home

[Freeciv-Dev] Re: (PR#11192) CMA detaches after revolution

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11192) CMA detaches after revolution
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 25 Nov 2004 08:22:40 -0800
Reply-to: rt@xxxxxxxxxxx

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

Hanover is being updated not because of a city packet, but because an 
adjacent city has changed.  So generic_city_refresh is never called.

This patch fixes it.

jason


Index: client/agents/cma_core.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/agents/cma_core.c,v
retrieving revision 1.67
diff -u -r1.67 cma_core.c
--- client/agents/cma_core.c    25 Nov 2004 07:20:02 -0000      1.67
+++ client/agents/cma_core.c    25 Nov 2004 16:17:54 -0000
@@ -393,6 +393,7 @@
     }
 
     pcity = find_city_by_id(city_id);
+    generic_city_refresh(pcity, FALSE, 0);
 
     cm_query_result(pcity, &parameter, &result);
     if (!result.found_a_valid) {

[Prev in Thread] Current Thread [Next in Thread]