X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fsst.c;h=ccf7470b64ea04fc4f39152e0fa75ff6e272f5a5;hp=00e384e0520f2b4f6af7f3e6a7d8624c43e0bb60;hb=4207ce95e80fe7e2d5114079fa4255e0ad506618;hpb=ad6b6f3e8316dc43c8f80ca8bc57be091b0076c6 diff --git a/src/sst.c b/src/sst.c index 00e384e..ccf7470 100644 --- a/src/sst.c +++ b/src/sst.c @@ -469,8 +469,8 @@ static void makemoves(void) } break; case DOCK: // dock - dock(1); - if (game.ididit) attack(0); + dock(true); + if (game.ididit) attack(false); break; case DAMAGES: // damages dreprt(); @@ -586,7 +586,7 @@ static void makemoves(void) continue; } if (hitme && !game.justin) { - attack(2); + attack(true); if (game.alldone) break; if (game.state.galaxy[game.quadrant.x][game.quadrant.y].supernova) { // went NOVA! atover(false); @@ -639,7 +639,7 @@ int main(int argc, char **argv) } } /* where to save the input in case of bugs */ - logfp = fopen("sst-input.log", "w"); + logfp = fopen("/usr/tmp/sst-input.log", "w"); setlinebuf(logfp); fprintf(logfp, "seed %d\n", seed); srand(seed);