[Freeciv-Dev] Re: [PATCH] is_normal_tile function
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
--- Jason Dorje Short <jshort@xxxxxxxxxxxxx> wrote:
> +***************************************************************/
> +int is_normal_tile(int x, int y)
> +{
> + return 0 <= y && y < map.ysize && 0 <= x && x < map.xsize;
> +}
you might want to use Ross' geeky way of writing such things:
return ((unsigned) y < (unsigned) map.ysize) && (....)
or am I as usual missing something?
G.
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
- [Freeciv-Dev] [PATCH] is_normal_tile function, Jason Dorje Short, 2001/08/15
- [Freeciv-Dev] Re: [PATCH] is_normal_tile function, Raimar Falke, 2001/08/15
- [Freeciv-Dev] Re: [PATCH] is_normal_tile function,
Gregory Berkolaiko <=
- [Freeciv-Dev] Re: [PATCH] is_normal_tile function, Raimar Falke, 2001/08/15
- [Freeciv-Dev] Re: [PATCH] is_normal_tile function, Gregory Berkolaiko, 2001/08/15
- [Freeciv-Dev] Re: [PATCH] is_normal_tile function, Raimar Falke, 2001/08/15
- [Freeciv-Dev] Re: [PATCH] is_normal_tile function, Gaute B Strokkenes, 2001/08/15
- [Freeciv-Dev] Re: [PATCH] is_normal_tile function, Gregory Berkolaiko, 2001/08/16
- [Freeciv-Dev] Re: [PATCH] is_normal_tile function, Ross W. Wetmore, 2001/08/16
- [Freeciv-Dev] Re: [PATCH] is_normal_tile function, Trent Piepho, 2001/08/15
- [Freeciv-Dev] Re: [PATCH] is_normal_tile function, Tony Stuckey, 2001/08/15
- [Freeciv-Dev] Re: [PATCH] is_normal_tile function, Miguel Farah F., 2001/08/15
- [Freeciv-Dev] Re: [PATCH] is_normal_tile function, Roy Tate, 2001/08/15
|
|