X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fsst.h;h=f9676f83cb2813eadf7468594a8e6611c69f6fcb;hp=fbaa466f42a05eda0d0dc401d884e1fecf3479a8;hb=a2df241b284e63c0a67dca4df0400439c121987a;hpb=18e74523dd6261a2672237611a06aa3bf5bf8a15 diff --git a/src/sst.h b/src/sst.h index fbaa466..f9676f8 100644 --- a/src/sst.h +++ b/src/sst.h @@ -46,7 +46,7 @@ typedef struct {int x; int y;} coord; #define same(c1, c2) ((c1.x == c2.x) && (c1.y == c2.y)) #define distance(c1, c2) sqrt(square(c1.x - c2.x) + square(c1.y - c2.y)) #define invalidate(w) w.x = w.y = 0 -#define is_valid(w) (w.x != 0 || w.y != 0) +#define is_valid(w) (w.x != 0 && w.y != 0) typedef struct { coord w;