X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=ai.c;h=fd9cf8ceecedcc77db509c839758e6a6208b5128;hp=33e4873f52b10a2ec83ced9e0280389980108988;hb=070639b283c6f4e324a24bbf604f3ce2b6900899;hpb=797f0f77ccdfd001fff39396ceae760478c2b920 diff --git a/ai.c b/ai.c index 33e4873..fd9cf8c 100644 --- 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 */ - for (ll = 1; ll <= nsteps; ll++) { + for (ll = 0; ll < nsteps; ll++) { #ifdef DEBUG if (idebug) { - prout("%d", ll); + prout("%d", ll+1); } #endif /* Check if preferred position available */