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

[Freeciv-Dev] is_real_tile

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: FreeCiv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] is_real_tile
From: Cameron Morland <cjmorlan@xxxxxxxxxxxx>
Date: Sun, 11 Mar 2001 15:36:41 -0500 (EST)
Reply-to: <cameron@xxxxxxxxxx>

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

?

+----------------------------------------------------------
| PGP http://www.eng.uwaterloo.ca/student/cjmorlan/pgp.txt
| cjmorland@xxxxxxxxxxxx
|
| If you want troubles, buy a watch.
|     --Maximilian I of Bavaria
+----------------------------------------------------------




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