X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=sst.h;h=d9ed121d3de13dbcce6d335adf5d453df933f12a;hb=797f0f77ccdfd001fff39396ceae760478c2b920;hp=203a1690473f8b777861e89c5da8a7ca7ea3297c;hpb=0e1982742e811243ff7887fbc8e1963f31138608;p=super-star-trek.git diff --git a/sst.h b/sst.h index 203a169..d9ed121 100644 --- a/sst.h +++ b/sst.h @@ -27,8 +27,11 @@ */ #define VALID_QUADRANT(x, y) ((x)>=1 && (x)<=GALSIZE && (y)>=1 && (y)<=GALSIZE) #define VALID_SECTOR(x, y) ((x)>=1 && (x)<=QUADSIZE && (y)>=1 && (y)<=QUADSIZE) -#define for_quadrants(i) for (i = 1; i < GALSIZE+1; i++) -#define for_sectors(i) for (i = 1; i < QUADSIZE+1; i++) +#define for_quadrants(i) for (i = 1; i <= GALSIZE; i++) +#define for_sectors(i) for (i = 1; i <= QUADSIZE; i++) +#define for_commanders(i) for (i = 1; i <= game.state.remcom; i++) +#define for_local_enemies(i) for (i = 1; i <= nenhere; i++) +#define for_starbases(i) for (i = 1; i <= game.state.rembase; i++) typedef struct { int x; /* Quadrant location of planet */