Introduce 'coord' data structure, an (x,y) tuple.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 18 Sep 2006 03:49:33 +0000 (03:49 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 18 Sep 2006 03:49:33 +0000 (03:49 +0000)
commitc81e0f1dc6cd1fe5c56e9d521ee1d262932e3a2b
tree3e05d2bea3dfca19e512b172bbcc1305660175fb
parent188965b8e49bc7a0233258627917239b57429e77
Introduce 'coord' data structure, an (x,y) tuple.

Use it consistently in both data structures and arguments of functions
that handle coordinates.

The main benefit of this is that lots of conditional expressions become
significantly less gnarly.  We get a bit of reduction in the line count
by cutting down on pairs of coordinate assignments.
src/ai.c
src/battle.c
src/events.c
src/finish.c
src/moving.c
src/planets.c
src/reports.c
src/setup.c
src/sst.c
src/sst.h