Complete.Org: Mailing Lists: Archives: freeciv-ai: September 2004:
[freeciv-ai] (PR#10346) [Bugfix] Correct add_to_size_limit check in city
Home

[freeciv-ai] (PR#10346) [Bugfix] Correct add_to_size_limit check in city

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: marko.lindqvist@xxxxxxxxxxx
Subject: [freeciv-ai] (PR#10346) [Bugfix] Correct add_to_size_limit check in city_desirability()
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 30 Sep 2004 00:05:34 -0700
Reply-to: rt@xxxxxxxxxxx

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

> [marko.lindqvist@xxxxxxxxxxx - Sun Sep 26 15:16:17 2004]:
> 
> 
>   city_desirability() and test_unit_add_or_build_city() check 
> add_to_size_limit differently. city_desirability() checks if we have 
> already reached that limit and test_unit_add_or_build_city() checks if 
> we are going to get over limit. This makes a difference when 
> unit_pop_value > 1.
>   Attached patch makes check in city_desirability() similar to one in 
> test_unit_add_or_build_city().

Shouldn't city_desirability just call test_unit_add_or_build_city?

jason



[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] (PR#10346) [Bugfix] Correct add_to_size_limit check in city_desirability(), Jason Short <=