forked from github/server
eliminate junk function
This commit is contained in:
parent
bd1b568da2
commit
9563aa712f
14
src/laws.c
14
src/laws.c
|
@ -847,20 +847,6 @@ void demographics(void)
|
||||||
|
|
||||||
/* ------------------------------------------------------------- */
|
/* ------------------------------------------------------------- */
|
||||||
|
|
||||||
static int modify(int i)
|
|
||||||
{
|
|
||||||
int c;
|
|
||||||
|
|
||||||
c = i * 2 / 3;
|
|
||||||
|
|
||||||
if (c >= 1) {
|
|
||||||
return (c + rng_int() % c);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return (i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* test if the unit can slip through a siege undetected.
|
/* test if the unit can slip through a siege undetected.
|
||||||
* returns 0 if siege is successful, or 1 if the building is either
|
* returns 0 if siege is successful, or 1 if the building is either
|
||||||
* not besieged or the unit can slip through the siege due to better stealth.
|
* not besieged or the unit can slip through the siege due to better stealth.
|
||||||
|
|
Loading…
Reference in New Issue