X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fsst.h;fp=src%2Fsst.h;h=fbaa466f42a05eda0d0dc401d884e1fecf3479a8;hp=a9c6ad294395fbd8e669d5911bd03b7e94323c22;hb=18e74523dd6261a2672237611a06aa3bf5bf8a15;hpb=a0718b55ad87f433723f756dfe748701c7801695 diff --git a/src/sst.h b/src/sst.h index a9c6ad2..fbaa466 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;