Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] (PR#11342) GUI should know that we can't buy
Home

[Freeciv-Dev] (PR#11342) GUI should know that we can't buy

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#11342) GUI should know that we can't buy
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 4 Dec 2004 20:32:20 -0800
Reply-to: rt@xxxxxxxxxxx

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

I found a city on the first turn.  I start building warriors.  I click 
"buy".  Warriors cost 50 to by, I have 50.  I click yes.  Now nothing 
happens.

Hidden away on the chatline is the error message:

   Game: Cannot buy in city created this turn.

but the GUI should know this.  If you can't buy instead of the 
confirmation dialog, either you should get an error dialog or the 
original buy button should be grayed out entirely.

In citydlg_common.h there is a city_can_buy() function.  I don't know if 
the error is that this function isn't called or that this function is 
incomplete.

-jason





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