projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the "crystals' member into an enumeration.
[super-star-trek.git]
/
src
/
sst.h
diff --git
a/src/sst.h
b/src/sst.h
index f96ea03bbd1499f0e8f1c388b365911bf2af0395..a397ed25633ad63db6a05fad108280b8c47ae0b6 100644
(file)
--- a/
src/sst.h
+++ b/
src/sst.h
@@
-51,8
+51,7
@@
typedef struct {
enum {M=0, N=1, O=2} pclass;
int inhabited; /* if NZ, an index into a name array */
#define UNINHABITED -1
enum {M=0, N=1, O=2} pclass;
int inhabited; /* if NZ, an index into a name array */
#define UNINHABITED -1
- int crystals; /* has crystals */
-#define MINED -1 /* used to have crystals, but they were mined out */
+ enum {mined=-1, present=0, absent=1} crystals; /* has crystals */
enum {unknown, known, shuttle_down} known;
} planet;
enum {unknown, known, shuttle_down} known;
} planet;