toporouter.c: Re-write {coord,point}_intersect_prop() to increase clariry.
commit9aa2725edcc0ceb6c1c3a602cc4e0adfc83f3737
authorPeter Clifton <pcjc2@cam.ac.uk>
Sat, 1 Oct 2011 18:21:39 +0000 (1 19:21 +0100)
committerPeter Clifton <pcjc2@cam.ac.uk>
Sat, 1 Oct 2011 18:21:39 +0000 (1 19:21 +0100)
tree80865be2c6c8183b25380b30458d0702260ae125
parentf4afb96a8b3fba437164c70855d635226ff8fd58
toporouter.c: Re-write {coord,point}_intersect_prop() to increase clariry.

Since the wind_* values computed in this function can be -1, 0 or 1,
it is clearer to test them using equality relations, not perform XOR
operations on their bit-patterns.

I believe the old code worked, but it would return an strange constant
for "true". To ram the point home, I've changed the function to return
bool.
src/toporouter.c