projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Python translation now includes ai.c.
[super-star-trek.git]
/
src
/
sst.c
diff --git
a/src/sst.c
b/src/sst.c
index a0d732d31fe5674c79b6e52063016ae028822b1e..79892387b165c2f41937e79602a849d30c5f8f20 100644
(file)
--- a/
src/sst.c
+++ b/
src/sst.c
@@
-472,13
+472,13
@@
static void makemoves(void)
attack(false);
break;
case DAMAGES: // damages
attack(false);
break;
case DAMAGES: // damages
- d
rep
rt();
+ d
amagerepo
rt();
break;
case CHART: // chart
makechart();
break;
case IMPULSE: // impulse
break;
case CHART: // chart
makechart();
break;
case IMPULSE: // impulse
- impuls();
+ impuls
e
();
break;
case REST: // rest
wait();
break;
case REST: // rest
wait();
@@
-486,7
+486,7
@@
static void makemoves(void)
hitme = true;
break;
case WARP: // warp
hitme = true;
break;
case WARP: // warp
- setwrp();
+ setw
a
rp();
break;
case SCORE: // score
score();
break;
case SCORE: // score
score();
@@
-518,7
+518,7
@@
static void makemoves(void)
hitme = true;
break;
case PLANETS: // Planet list
hitme = true;
break;
case PLANETS: // Planet list
-
preport
();
+
survey
();
break;
case REPORT: // Game Report
report();
break;
case REPORT: // Game Report
report();
@@
-540,7
+540,7
@@
static void makemoves(void)
hitme = true;
break;
case ABANDON: // Abandon Ship
hitme = true;
break;
case ABANDON: // Abandon Ship
- abandn();
+ aband
o
n();
break;
case DESTRUCT: // Self Destruct
selfdestruct();
break;
case DESTRUCT: // Self Destruct
selfdestruct();
@@
-583,10
+583,12
@@
static void makemoves(void)
}
commandhook(commands[i].name, false);
for (;;) {
}
commandhook(commands[i].name, false);
for (;;) {
- if (game.alldone) break; // Game has ended
+ if (game.alldone)
+ break; // Game has ended
if (game.optime != 0.0) {
events();
if (game.optime != 0.0) {
events();
- if (game.alldone) break; // Events did us in
+ if (game.alldone)
+ break; // Events did us in
}
if (game.state.galaxy[game.quadrant.x][game.quadrant.y].supernova) { // Galaxy went Nova!
atover(false);
}
if (game.state.galaxy[game.quadrant.x][game.quadrant.y].supernova) { // Galaxy went Nova!
atover(false);