projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More magic-number chasing.
[super-star-trek.git]
/
sst.c
diff --git
a/sst.c
b/sst.c
index f6b21c7c2be6c419ee4446bcaae68672649a8084..a9884e71511f876f29db0a2f62c2ec712fdb541d 100644
(file)
--- a/
sst.c
+++ b/
sst.c
@@
-454,14
+454,14
@@
static void makemoves(void) {
events();
if (alldone) break; // Events did us in
}
events();
if (alldone) break; // Events did us in
}
- if (game.state.galaxy[quadx][quady] ==
1000
) { // Galaxy went Nova!
+ if (game.state.galaxy[quadx][quady] ==
SUPERNOVA_PLACE
) { // Galaxy went Nova!
atover(0);
continue;
}
if (hitme && justin==0) {
attack(2);
if (alldone) break;
atover(0);
continue;
}
if (hitme && justin==0) {
attack(2);
if (alldone) break;
- if (game.state.galaxy[quadx][quady] ==
1000) {
// went NOVA!
+ if (game.state.galaxy[quadx][quady] ==
SUPERNOVA_PLACE) {
// went NOVA!
atover(0);
hitme = TRUE;
continue;
atover(0);
hitme = TRUE;
continue;