(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:
parent
03c96f90d8
commit
4a6346b0df
8 changed files with 17 additions and 17 deletions
|
@ -115,7 +115,7 @@ upd_ship(struct shpstr *sp, int etus,
|
|||
{
|
||||
struct sctstr *sectp;
|
||||
struct mchrstr *mp;
|
||||
u_short pstage, ptime;
|
||||
int pstage, ptime;
|
||||
int oil_gained;
|
||||
int max_oil;
|
||||
int max_food;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue