if (condit == IHDOCKED) {
/* We are docked, so restore chart from base information */
stdamtim = game.state.date;
if (condit == IHDOCKED) {
/* We are docked, so restore chart from base information */
stdamtim = game.state.date;
- for (i=1; i <= 8 ; i++)
- for (j=1; j <= 8; j++)
- if (game.starch[i][j] == 1) game.starch[i][j] = game.state.galaxy[i][j]+1000;
+ for (i=1; i <= GALSIZE ; i++)
+ for (j=1; j <= GALSIZE; j++)
+ if (game.starch[i][j] == 1) game.starch[i][j] = game.state.galaxy[i][j]+SUPERNOVA_PLACE;
if (strncmp(citem,requests[k],min(2,strlen(citem)))==0)
break;
if (strncmp(citem,requests[k],min(2,strlen(citem)))==0)
break;
prout("UNRECOGNIZED REQUEST. Legal requests are:\n"
" date, condition, position, lsupport, warpfactor,\n"
" energy, torpedoes, shields, klingons, time.");
prout("UNRECOGNIZED REQUEST. Legal requests are:\n"
" date, condition, position, lsupport, warpfactor,\n"
" energy, torpedoes, shields, klingons, time.");
if (goodScan || (abs(i-sectx)<= 1 && abs(j-secty) <= 1)){
if ((game.quad[i][j]==IHMATER0)||(game.quad[i][j]==IHMATER1)||(game.quad[i][j]==IHMATER2)||(game.quad[i][j]==IHE)||(game.quad[i][j]==IHF)){
switch (condit) {
if (goodScan || (abs(i-sectx)<= 1 && abs(j-secty) <= 1)){
if ((game.quad[i][j]==IHMATER0)||(game.quad[i][j]==IHMATER1)||(game.quad[i][j]==IHMATER2)||(game.quad[i][j]==IHE)||(game.quad[i][j]==IHF)){
switch (condit) {
- if (ix1 > 8 || ix1 < 1 || iy1 > 8 || iy1 < 1 ||
- ix2 > 10 || ix2 < 1 || iy2 > 10 || iy2 < 1) {
+ if (ix1 > GALSIZE || ix1 < 1 || iy1 > GALSIZE || iy1 < 1 ||
+ ix2 > QUADSIZE || ix2 < 1 || iy2 > QUADSIZE || iy2 < 1) {