Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] Re: (PR#6298) civserver: city.c:895: can_establish_trade_r
Home

[Freeciv-Dev] Re: (PR#6298) civserver: city.c:895: can_establish_trade_r

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: cameron@xxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6298) civserver: city.c:895: can_establish_trade_route: Assertion `can_cities_trade(pc1, pc2)' failed
From: "Remi Bonnet" <remi.bonnet@xxxxxxxxxxx>
Date: Fri, 26 Sep 2003 23:45:24 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Cameron Morland wrote:

>[cameron - Fri Sep 26 17:50:58 2003]:
>
>  
>
>>I get the assertion
>>
>>civserver: city.c:895: can_establish_trade_route: Assertion
>>`can_cities_trade(pc1, pc2)' failed
>>    
>>
>
>can_establist_trade_route() assumes that we've already checked
>can_cities_trade(), and asserts as much. So, we need to check that if we
>haven't already.
>
>  
>
I really don't understand this behviour. Why can_establish_trade_route 
can't return FALSE instead of dying when can_cities_trade failed?

Remi




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