| [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]
 
 
<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
 
 |  |