(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
|
@ -75,8 +75,8 @@ struct sctstr {
|
|||
short sct_del[I_MAX+1]; /* delivieries */
|
||||
short sct_dist[I_MAX+1]; /* distribution thresholds */
|
||||
short sct_mines; /* number of mines */
|
||||
u_short sct_pstage; /* plague stage */
|
||||
u_short sct_ptime; /* how many etus remain in this stage */
|
||||
short sct_pstage; /* plague stage */
|
||||
short sct_ptime; /* how many etus remain in this stage */
|
||||
u_char sct_che; /* number of guerrillas */
|
||||
natid sct_che_target; /* nation targeted by che */
|
||||
u_short sct_fallout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue