[Freeciv-Dev] cartesian_adjacent_iterate in map.h
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Anyone objects if i change that to:
#define cartesian_adjacent_iterate(x, y, IAC_x, IAC_y) \
{ \
int IAC_i; \
int IAC_x, IAC_y; \
CHECK_MAP_POS(x, y); \
for (IAC_i = 0; IAC_i < 4; IAC_i++) { \
IAC_x = CAR_DIR_DX[IAC_i]; \
IAC_y = CAR_DIR_DY[IAC_i]; \
\
if (!normalize_map_pos(&IAC_x, &IAC_y)) \
continue;
#define cartesian_adjacent_iterate_end \
} \
}
?
---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa
- [Freeciv-Dev] cartesian_adjacent_iterate in map.h,
Vasco Alexandre Da Silva Costa <=
|
|