X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Fsetup.c;h=7e1b65257f96120f2971be5b66d7f5c486743548;hb=b167d4be7ad2e751c5b90bffa75d8227840ff201;hp=e0ca59da9b9d3c5e3bf76c72cca660eb538b1980;hpb=0c29dd2a524aab48238926e4a893ea406a851971;p=super-star-trek.git diff --git a/src/setup.c b/src/setup.c index e0ca59d..7e1b652 100644 --- a/src/setup.c +++ b/src/setup.c @@ -324,7 +324,8 @@ void setup(bool needprompt) game.state.galaxy[w.x][w.y].klingons > 8); // check for duplicate for (j = 1; j < i; j++) - if (game.state.kcmdr[j].x==w.x && game.state.kcmdr[j].y==w.y) break; + if (same(game.state.kcmdr[j], w)) + break; } while (j < i); game.state.galaxy[w.x][w.y].klingons++; game.state.kcmdr[i] = w; @@ -560,7 +561,6 @@ void newqad(bool shutup) coord w; struct quadrant *q; - game.iattak = 1; game.justin = true; game.base.x = game.base.y = 0; game.klhere = 0;