Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2001:
[Freeciv-Dev] Re: is_real_tile
Home

[Freeciv-Dev] Re: is_real_tile

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: <cameron@xxxxxxxxxx>
Cc: FreeCiv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: is_real_tile
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: 11 Mar 2001 20:44:58 +0000

On Sun, 11 Mar 2001, cjmorlan@xxxxxxxxxxxx wrote:

> This function, in common/map.c, only checks the y co-ordinate.
> 
> int is_real_tile(int x, int y)
> {
>   return y >= 0 && y < map.ysize;
> }
> 
> Is there some reason for this, or did someone just forget to add a
> 
> && x >= 0 && x < map.xsize
> 
> ?

It's deliberate.  The function is supposed to check whether x, y
refers to a real tile.  This is note the same as whether x, y are
normalised.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
All I can think of is a platter of organic PRUNE CRISPS being trampled
 by an army of swarthy, Italian LOUNGE SINGERS...



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