Mercurial > hg > batmud > maputils
changeset 978:050e4dcd1aaf
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 14 Jun 2010 21:26:06 +0000 |
parents | c7fc7b40bb86 |
children | 3a672a890846 |
files | mkloc.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mkloc.c Mon Jun 14 17:30:41 2010 +0000 +++ b/mkloc.c Mon Jun 14 21:26:06 2010 +0000 @@ -1076,16 +1076,16 @@ /* Check for adjacent markers */ -int checkForAdjacent(locations_t *worldLoc, int cx, int cy, int locMask) +int checkForAdjacent(locations_t *world, int cx, int cy, int mask) { int x, y, n; for (y = -1; y <= 1; y++) for (x = -1; x <= 1; x++) if (!(y == 0 && x == 0) && - (n = findLocationByCoords(worldLoc, cx+x, cy+y, TRUE)) >= 0) { - marker_t *tmpl = worldLoc->locations[n]; - if ((tmpl->flags & locMask) == locMask) + (n = findLocationByCoords(world, cx + x, cy + y, TRUE)) >= 0) { + marker_t *loc = world->locations[n]; + if ((loc->flags & mask) == mask) return n; }