X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=ai.c;h=e766e9832d6dfaac210ff7b0fcd6acac7f93d8e3;hp=762e745dcf4dbe9ff62a0943ebf291506034e3e6;hb=8273c136f86228a8b0c6e66554ef96074a429c0a;hpb=5b0cc4a8a21c3d66e5a43abdb06f37df2d525e08 diff --git a/ai.c b/ai.c index 762e745..e766e98 100644 --- a/ai.c +++ b/ai.c @@ -164,7 +164,7 @@ static void movebaddy(int comx, int comy, int loccom, int ienm) /* Limit motion according to skill */ if (abs(motion) > skill) motion = (motion < 0) ? -skill : skill; } - /* calcuate preferred number of steps */ + /* calculate preferred number of steps */ nsteps = motion < 0 ? -motion : motion; if (motion > 0 && nsteps > mdist) nsteps = mdist; /* don't overshoot */ if (nsteps > QUADSIZE) nsteps = QUADSIZE; /* This shouldn't be necessary */