Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2004:
[Freeciv-Dev] (PR#7279) Macro optimizations
Home

[Freeciv-Dev] (PR#7279) Macro optimizations

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: a-l@xxxxxxx
Subject: [Freeciv-Dev] (PR#7279) Macro optimizations
From: "Marcelo Burda" <mburda@xxxxxxxxx>
Date: Mon, 2 Feb 2004 02:21:12 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7279 >

...
> bool normalize_map_pos(struct map *map, int *x, int *y)
> normalize_map_pos(PMAP, X, Y)
> 
> These are functions that use instance map data rather than getting
> things
> like map.xsize from a global. Thus one can have several different maps
> or
> worlds and do appropriate topology transformations in any of them in
> the
> same game.
...
> Cheers,
> RossW
> =====
i am working using pointer to function: for this i propose some object 
style usage:
PMAP->normalzie_map_pos(X,Y);
to use more than one map.
Marcelo




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