Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] (PR#8619) implementing IS_BORDER_MAP_POS for iso-maps
Home

[Freeciv-Dev] (PR#8619) implementing IS_BORDER_MAP_POS for iso-maps

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8619) implementing IS_BORDER_MAP_POS for iso-maps
From: "Marcelo Burda" <mburda@xxxxxxxxx>
Date: Thu, 29 Apr 2004 13:33:29 -0700
Reply-to: rt@xxxxxxxxxxx

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

I implement there the IS_BORDER_MAP_POS as a (inline) function to
implement this for iso-maps.
i make a macro one but it is very hugly code and speed up is no so good.
in no-iso map speed down is near zero and for iso-map the speed up is
near 20% with this patch.
i define too a do_in_native_pos block to be used in this function. i
think this more clear than direct usage of map_to_native_pos.
Probably there is good idea to move do_in_map_pos(defined long time ago
in mapgen.c) near this one!

Best Regards, Marcelo

thx Jason for your help
the title of this ticket need to be changed!


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