}
break;
case DOCK: // dock
- dock(1);
- if (game.ididit) attack(0);
+ dock(true);
+ if (game.ididit) attack(false);
break;
case DAMAGES: // damages
dreprt();
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);
}
}
/* 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);