Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#9584) Patch: Don't show "You have bought" if only the
Home

[Freeciv-Dev] (PR#9584) Patch: Don't show "You have bought" if only the

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9584) Patch: Don't show "You have bought" if only the worklist changes
From: "Ciaran Mac Lochlainn" <ciaran17@xxxxxxxxxx>
Date: Sun, 1 Aug 2004 18:44:42 -0700
Reply-to: rt@xxxxxxxxxxx

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

If you buy a city's production target and then change the worklist, 
you get the warning "Game: You have bought this turn, can't change."

This behaviour is appropriate if you are trying to change the 
production target, but not if you are only changing the worklist.

This patch is intended to stop the message appearing unless you try to 
change the target after buying it.


Index: cityhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/cityhand.c,v
retrieving revision 1.132
diff -r1.132 cityhand.c
347c347,348
<   if (pcity->did_buy && pcity->shield_stock > 0) {
---
>   if (pcity->did_buy && pcity->shield_stock > 0 &&
>        pcity->currently_building != build_id) {

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