(sct_pstage, sct_ptime, shp_pstage, shp_ptime, lnd_pstage, lnd_ptime):

Use `short' instead of `unsigned short'.  With variables, plague stage
and time were stored unsigned and used signed, which worked.  Removal
of variables dropped the conversion to signed, which broke
plague_people() (plague.c rev. 1.6): stage didn't progress correctly
due to catastrophic underflow of time.
This commit is contained in:
Ron Koenderink 2004-12-12 19:39:35 +00:00
parent 03c96f90d8
commit 4a6346b0df
8 changed files with 17 additions and 17 deletions

View file

@ -115,7 +115,7 @@ upd_land(struct lndstr *lp, int etus,
/* build = 1, maintain = 0 */
{
struct lchrstr *lcp;
u_short pstage, ptime;
int pstage, ptime;
int n;
int min = morale_base - (int)np->nat_level[NAT_HLEV];
int mult;