Delete some code that has been disabled out for ages and looks

useless or wrong.
This commit is contained in:
Markus Armbruster 2005-07-23 18:35:07 +00:00
parent 4bfb66a255
commit c41c45be61
5 changed files with 0 additions and 95 deletions

View file

@ -602,32 +602,6 @@ build_bridge(struct sctstr *sp, short *vec)
return 0;
}
}
#if 0
else {
for (i = 1; i <= 6; i++) {
struct sctstr s2;
nx = sp->sct_x + diroff[i][0];
ny = sp->sct_y + diroff[i][1];
getsect(nx, ny, &sect);
for (j = 1; j <= 6; j++) {
nx2 = sect.sct_x + diroff[j][0];
ny2 = sect.sct_y + diroff[j][1];
getsect(nx2, ny2, &s2);
if ((s2.sct_type != SCT_WATER) &&
(s2.sct_type != SCT_BSPAN))
good = 1;
}
}
if (!good) {
pr("Bridges must be built adjacent to land or bridge towers.\n");
pr("No eligible sectors adjacent to this sector.\n");
return 0;
}
} /* end EASY_BRIDGES */
#endif
if (sp->sct_effic < 60 && !player->god) {
pr("Sector %s is not 60%% efficient.\n",

View file

@ -628,16 +628,6 @@ load_land_ship(struct sctstr *sectp, struct shpstr *sp, int noisy,
}
return 0;
}
#if 0
if (sp->shp_nland >= mchr[(int)sp->shp_type].m_nland) {
if (noisy)
if (mchr[(int)sp->shp_type].m_nland)
pr("%s doesn't have room for any more land units!\n", prship(sp));
else
pr("%s cannot carry land units!\n", prship(sp));
break;
}
#endif
sprintf(buf, "loaded on your %s at %s",
prship(sp), xyas(sp->shp_x, sp->shp_y, sp->shp_own));
gift(sp->shp_own, player->cnum, (s_char *)&land, EF_LAND, buf);