X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fsst.h;h=7389c5de3aecd4a0c3636b88c172849e9a4d9ea1;hp=63a967996edbfced2e5fff75f2bf8fb8eb92a226;hb=2c5438d3c22fe863ad8054d214f2afdd061ad43a;hpb=321425c10831f63599c41c31e9d42bc4ec8001d0 diff --git a/src/sst.h b/src/sst.h index 63a9679..7389c5d 100644 --- a/src/sst.h +++ b/src/sst.h @@ -47,15 +47,13 @@ typedef struct {int x; int y;} coord; typedef struct { coord w; - enum {M=0, N=1, O=2} pclass; + enum {destroyed= -1, M=0, N=1, O=2} pclass; int inhabited; /* if NZ, an index into a name array */ #define UNINHABITED -1 enum {mined=-1, present=0, absent=1} crystals; /* has crystals */ enum {unknown, known, shuttle_down} known; } planet; -#define DESTROY(pl) memset(pl, '\0', sizeof(planet)) - typedef enum { IHR = 'R', IHK = 'K',