Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] (PR#8591) win32: client crashes on middle click
Home

[Freeciv-Dev] (PR#8591) win32: client crashes on middle click

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8591) win32: client crashes on middle click
From: "James Canete" <use_less@xxxxxxxxxxx>
Date: Mon, 26 Apr 2004 00:49:34 -0700
Reply-to: rt@xxxxxxxxxxx

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

> [jdorje - Mon Apr 26 07:43:09 2004]:
> 
> James Canete wrote:
> > 
> > Perhaps a wrapper function should be made?
> 
> Perhaps.  But I don't think gui-win32 needs one.
> 
> gui-win32/cityrep.c:typedef bool TestCityFunc(struct city *, int);
> 
> So just change the int to an Impr_Type_id?
> 

I don't think that'll work, it's also used for a number of functions
like these from climisc:

bool city_can_build_impr_or_unit(struct city *pcity, cid cid);
bool city_unit_supported(struct city *pcity, cid cid);
bool city_unit_present(struct city *pcity, cid cid);

so there should probably be a city_building_present(struct city *pcity,
cid cid) which is a wrapper for city_got_building().

-James Canete


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