|
Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
October 2002: [Freeciv-Dev] Macros in map.h |
|
[Freeciv-Dev] Macros in map.h[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Jason,
Is there any particular reason why there is
MAPSTEP(dest_x, dest_y, src_x, src_y, dir)
macro in map.h and no macro like this:
#define STEP(x, y, dir) \
( (x) += DIR_DX[(dir)], \
(y) += DIR_DY[(dir)], \
normalize_map_pos(&(x), &(y)))
?
|