Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2004:
[Freeciv-Dev] Re: (PR#7261) restructure tileset to avoid explicit terrai
Home

[Freeciv-Dev] Re: (PR#7261) restructure tileset to avoid explicit terrai

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7261) restructure tileset to avoid explicit terrain mention
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Fri, 13 Feb 2004 23:53:15 -0800
Reply-to: rt@xxxxxxxxxxx

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

On Thu, Feb 12, 2004 at 12:54:15AM -0800, Jason Short wrote:
> >>+  if (draw->match_type == 0 || draw->is_layered || is_ocean(terrain)) {
> 
> >>+  if (draw->match_type != 0 && !is_ocean(terrain)) {
> > 
> > 
> > What if neither the MARK line or this lines matches? Isn't there
> > draw->base unset?
> 
> Logically one of the lines will always match.

Hmm the following form isn't much cleaner:

  bool tmp=draw->match_type != 0 && !is_ocean(terrain);

  if(tmp || draw->is_layered) {

  }

  if(!tmp) {

  }

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Any sufficiently advanced technology is indistinguishable from magic."
    -- Arthur C. Clarke




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