projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added OPTION_SHOWME.
[super-star-trek.git]
/
ai.c
diff --git
a/ai.c
b/ai.c
index 33e4873f52b10a2ec83ced9e0280389980108988..d96f747315ebac25962de011493f328d814a85c8 100644
(file)
--- a/
ai.c
+++ b/
ai.c
@@
-185,10
+185,10
@@
static void movebaddy(int comx, int comy, int loccom, int ienm)
nextx = comx;
nexty = comy;
/* main move loop */
nextx = comx;
nexty = comy;
/* main move loop */
- for (ll =
1; ll <=
nsteps; ll++) {
+ for (ll =
0; ll <
nsteps; ll++) {
#ifdef DEBUG
if (idebug) {
#ifdef DEBUG
if (idebug) {
- prout("%d", ll);
+ prout("%d", ll
+1
);
}
#endif
/* Check if preferred position available */
}
#endif
/* Check if preferred position available */
@@
-370,8
+370,8
@@
void scom(int *ipage)
{
int i, i2, j, ideltax, ideltay, ibqx, ibqy, sx, sy, ifindit, iwhichb;
int iqx, iqy;
{
int i, i2, j, ideltax, ideltay, ibqx, ibqy, sx, sy, ifindit, iwhichb;
int iqx, iqy;
- int basetbl[BASEMAX];
- double bdist[BASEMAX];
+ int basetbl[BASEMAX
+1
];
+ double bdist[BASEMAX
+1
];
int flag;
#ifdef DEBUG
if (idebug) prout("SCOM");
int flag;
#ifdef DEBUG
if (idebug) prout("SCOM");