(upd_ship): Capability fish didn't work together with capability oil.

This commit is contained in:
Markus Armbruster 2004-02-15 19:30:03 +00:00
parent 42a43e1461
commit 27efd2c266

View file

@ -184,9 +184,9 @@ upd_ship(register struct shpstr *sp, int shipno, register int etus,
*resource -= roundavg(oil_gained * *resource -= roundavg(oil_gained *
product->p_nrdep / 100.0); product->p_nrdep / 100.0);
} }
} else }
if (((mp->m_flags & M_FOOD) && (sectp->sct_type == SCT_WATER)) if (((mp->m_flags & M_FOOD) && (sectp->sct_type == SCT_WATER))
&& !player->simulation) { && !player->simulation) {
sectp = getsectp(sp->shp_x, sp->shp_y); sectp = getsectp(sp->shp_x, sp->shp_y);
vec[I_FOOD] += ((vec[I_CIVIL] * etus) / 1000.0) vec[I_FOOD] += ((vec[I_CIVIL] * etus) / 1000.0)
* sectp->sct_fertil; * sectp->sct_fertil;