Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] cartesian_adjacent_iterate in map.h
Home

[Freeciv-Dev] cartesian_adjacent_iterate in map.h

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] cartesian_adjacent_iterate in map.h
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Tue, 5 Feb 2002 22:20:53 +0000 (WET)

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



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