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

Daniel Markstedt wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=39568 >
> 
>> [dmarks - Sun Jun 29 01:22:46 2008]:
>>
>>> [jdorje - Sun Jun 29 01:17:09 2008]:
>>>
>>>> [pepeto - Mon Oct 15 17:07:29 2007]:
>>>>
>>>> Isn't this ticket resolved? Or does it need some more improvement?
>>> What about 2.0? Is it still broken there?
>>>
>>> -jason
>>>
>>>
>> Yes it is.
>>
> 
> Tried to merge the first revision of the patch to S2_0, but just 
> worsens the issue. With attached patch selling buildings is completely 
> broken.

Ahh so.

pcity->owner is a player id not a pointer.  So this patch does the trick.

-jason

Index: client/gui-gtk-2.0/citydlg.c
===================================================================
--- client/gui-gtk-2.0/citydlg.c        (revision 14909)
+++ client/gui-gtk-2.0/citydlg.c        (working copy)
@@ -2389,8 +2389,7 @@
     return;
   }
 
-  if (pdialog->pcity->did_buy || pdialog->pcity->did_sell ||
-      pdialog->pcity->owner != game.player_idx) {
+  if (pdialog->pcity->did_sell || pdialog->pcity->owner != game.player_idx) {
     return;
   }
   
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to