[Freeciv-Dev] is_real_tile
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
+----------------------------------------------------------
- [Freeciv-Dev] is_real_tile,
Cameron Morland <=
|
|