[Freeciv-Dev] (PR#7279) Macro optimizations
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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
|
|