Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2002:
[Freeciv-Dev] Re: [PATCH] use enum values for ai_choice at aicity.c (PR#
Home

[Freeciv-Dev] Re: [PATCH] use enum values for ai_choice at aicity.c (PR#

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Markus Linnala <maage@xxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] use enum values for ai_choice at aicity.c (PR#1313)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Mar 2002 11:28:23 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Sun, Mar 10, 2002 at 08:21:04AM -0800, Markus Linnala wrote:
> 
> Use enum values instead of plain ints.
> 
> diff -ur -X freeciv/diff_ignore freeciv/ai/aicity.c 
> freeciv-ct-none/ai/aicity.c
> --- freeciv/ai/aicity.c       Fri Mar  8 19:06:18 2002
> +++ freeciv-ct-none/ai/aicity.c       Sun Mar 10 18:17:37 2002
> @@ -424,14 +424,14 @@
>        buycost = city_buy_cost(pcity);
>        if (pcity->shield_stock == 0) {
>       /* nothing */
> -      } else if (bestchoice.type == 0 && is_wonder(bestchoice.choice) &&
> +      } else if (bestchoice.type == CT_NONE && is_wonder(bestchoice.choice) 
> &&

See <http://arch.freeciv.org/freeciv-dev-200109/msg00919.html>

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  This customer comes into the computer store. "I'm looking for a mystery
  Adventure Game with lots of graphics. You know, something realy
  challenging". "Well," replied the clerk, "have you tried Windows 98 ?"


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