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
/
ai.c
diff --git
a/src/ai.c
b/src/ai.c
index 733c62f83351b9540bb72a5b6f00e164ff264cbf..97d0b412e71efc56a985e55aca47614d9f1b2f2a 100644
(file)
--- a/
src/ai.c
+++ b/
src/ai.c
@@
-331,7
+331,7
@@
static bool movescom(coord iq, bool flag, bool *ipage)
/* check for a helpful planet */
for (i = 0; i < game.inplan; i++) {
if (same(game.state.plnets[i].w, game.state.kscmdr) &&
/* check for a helpful planet */
for (i = 0; i < game.inplan; i++) {
if (same(game.state.plnets[i].w, game.state.kscmdr) &&
- game.state.plnets[i].crystals ==
1
) {
+ game.state.plnets[i].crystals ==
present
) {
/* destroy the planet */
DESTROY(&game.state.plnets[i]);
game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].planet = NOPLANET;
/* destroy the planet */
DESTROY(&game.state.plnets[i]);
game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].planet = NOPLANET;