Delete some code that has been disabled out for ages and looks
useless or wrong.
This commit is contained in:
parent
4bfb66a255
commit
c41c45be61
5 changed files with 0 additions and 95 deletions
|
@ -144,27 +144,6 @@ sd(natid att, natid own, coord x, coord y, int noisy, int defending,
|
|||
return (int)100 - (eff * 100);
|
||||
}
|
||||
|
||||
/*
|
||||
* Determine if any nearby gun-equipped sectors are within
|
||||
* range and able to fire at an attacker. Firing sectors
|
||||
* need to have guns, shells, and military. Sector being
|
||||
* attacked is x,y -- attacker is at ax,ay.
|
||||
*/
|
||||
#if 0
|
||||
/* defdef isn't called anywhere, and uses wrong
|
||||
* number of arguments for dd */
|
||||
int
|
||||
defdef(att, def_own, defval, ax, ay)
|
||||
natid att;
|
||||
natid def_own;
|
||||
int defval;
|
||||
coord ax;
|
||||
coord ay;
|
||||
{
|
||||
return dd(att, def_own, defval, ax, ay, NOISY, 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
dd(natid att, natid def_own, coord ax, coord ay, int noisy, int defending)
|
||||
{
|
||||
|
|
|
@ -339,30 +339,6 @@ retreat_ship1(struct shpstr *sp, s_char code, int orig)
|
|||
return 1;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static int
|
||||
check_nav(sect)
|
||||
struct sctstr *sect;
|
||||
{
|
||||
switch (dchr[sect->sct_type].d_flg & 03) {
|
||||
case NAVOK:
|
||||
break;
|
||||
|
||||
case NAV_02:
|
||||
if (sect->sct_effic < 2)
|
||||
return CN_CONSTRUCTION;
|
||||
break;
|
||||
case NAV_60:
|
||||
if (sect->sct_effic < 60)
|
||||
return CN_CONSTRUCTION;
|
||||
break;
|
||||
default:
|
||||
return CN_LANDLOCKED;
|
||||
}
|
||||
return CN_NAVIGABLE;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int
|
||||
findcondition(s_char code)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue