projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace more #defines with enums.
[super-star-trek.git]
/
src
/
ai.c
diff --git
a/src/ai.c
b/src/ai.c
index 91d7ab4b41a94008815fcd85d436b6b842380ecb..7adbfdf060ed4aac060fde3a45aa1af2f7dcd85f 100644
(file)
--- a/
src/ai.c
+++ b/
src/ai.c
@@
-28,7
+28,7
@@
static bool tryexit(coord look, int ienm, int loccom, bool irun)
We know this if either short or long range sensors are working */
if (!damaged(DSRSENS) || !damaged(DLRSENS) ||
game.condition == docked) {
We know this if either short or long range sensors are working */
if (!damaged(DSRSENS) || !damaged(DLRSENS) ||
game.condition == docked) {
- crmena(
1
, ienm, sector, game.ks[loccom]);
+ crmena(
true
, ienm, sector, game.ks[loccom]);
prout(_(" escapes to %s (and regains strength)."),
cramlc(quadrant, iq));
}
prout(_(" escapes to %s (and regains strength)."),
cramlc(quadrant, iq));
}
@@
-66,7
+66,7
@@
static bool tryexit(coord look, int ienm, int loccom, bool irun)
}
}
-static void movebaddy(coord com, int loccom,
int
ienm)
+static void movebaddy(coord com, int loccom,
feature
ienm)
/* tactical movement for the bad guys */
{
int motion, mdist, nsteps, mx, my, ll;
/* tactical movement for the bad guys */
{
int motion, mdist, nsteps, mx, my, ll;
@@
-335,7
+335,7
@@
static bool movescom(coord iq, bool flag, bool *ipage)
DESTROY(&game.state.plnets[i]);
game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].planet = NOPLANET;
if (!damaged(DRADIO) || game.condition == docked) {
DESTROY(&game.state.plnets[i]);
game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].planet = NOPLANET;
if (!damaged(DRADIO) || game.condition == docked) {
- if (*ipage==0) pause_game(
1
);
+ if (*ipage==0) pause_game(
true
);
*ipage = 1;
prout(_("Lt. Uhura- \"Captain, Starfleet Intelligence reports"));
proutn(_(" a planet in "));
*ipage = 1;
prout(_("Lt. Uhura- \"Captain, Starfleet Intelligence reports"));
proutn(_(" a planet in "));
@@
-490,7
+490,7
@@
void scom(bool *ipage)
if (damaged(DRADIO) && game.condition != docked)
return; /* no warning */
game.iseenit = true;
if (damaged(DRADIO) && game.condition != docked)
return; /* no warning */
game.iseenit = true;
- if (*ipage == 0) pause_game(
1
);
+ if (*ipage == 0) pause_game(
true
);
*ipage=1;
proutn(_("Lt. Uhura- \"Captain, the starbase in "));
proutn(cramlc(quadrant, game.state.kscmdr));
*ipage=1;
proutn(_("Lt. Uhura- \"Captain, the starbase in "));
proutn(cramlc(quadrant, game.state.kscmdr));
@@
-513,7
+513,7
@@
void scom(bool *ipage)
(damaged(DRADIO) && game.condition != docked) ||
!game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].charted))
return;
(damaged(DRADIO) && game.condition != docked) ||
!game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].charted))
return;
- if (*ipage==0) pause_game(
1
);
+ if (*ipage==0) pause_game(
true
);
*ipage = 1;
prout(_("Lt. Uhura- \"Captain, Starfleet Intelligence reports"));
proutn(_(" the Super-commander is in "));
*ipage = 1;
prout(_("Lt. Uhura- \"Captain, Starfleet Intelligence reports"));
proutn(_(" the Super-commander is in "));