From: Eric S. Raymond Date: Thu, 28 Sep 2006 10:18:52 +0000 (+0000) Subject: More cleanup towards automated Python translation. X-Git-Tag: 2.0~187 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=a76d5b483a4f07459b71f9cce46c93c3f7ed8f96;p=super-star-trek.git More cleanup towards automated Python translation. --- diff --git a/src/sst.h b/src/sst.h index e4eb9d3..daf97ac 100644 --- a/src/sst.h +++ b/src/sst.h @@ -20,13 +20,15 @@ #define min(x, y) ((x)<(y)?(x):(y)) #define max(x, y) ((x)>(y)?(x):(y)) -#define PHASEFAC (2.0) -#define GALSIZE (8) -#define NINHAB (GALSIZE * GALSIZE / 2) -#define MAXUNINHAB (10) -#define PLNETMAX (NINHAB + MAXUNINHAB) -#define QUADSIZE (10) -#define BASEMAX (5) +#define PHASEFAC 2.0 +#define GALSIZE 8 +#define NINHAB (GALSIZE * GALSIZE / 2) +#define MAXUNINHAB 10 +#define PLNETMAX (NINHAB + MAXUNINHAB) +#define QUADSIZE 10 +#define BASEMAX (GALSIZE * GALSIZE / 12) +#define MAXKLGAME 127 +#define MAXKLQUAD 9 /* * These macros hide the difference between 0-origin and 1-origin addressing. @@ -118,9 +120,6 @@ typedef struct { } chart[GALSIZE+1][GALSIZE+1]; // the starchart (subscript 0 not used) } snapshot; // Data that is snapshot -#define MAXKLGAME 127 -#define MAXKLQUAD 9 - #define NKILLK (game.inkling - game.state.remkl) #define NKILLC (game.incom - game.state.remcom) #define NKILLSC (game.inscom - game.state.nscrem)