(do_conv, enli, explore, move, shoo, s_commod): sct_mobil was changed
from u_char to short in 3.0.0, but many assignments still cast to u_char. Remove casts.
This commit is contained in:
parent
5c423d1e42
commit
aebcc536e4
6 changed files with 14 additions and 18 deletions
|
@ -117,10 +117,8 @@ enli(void)
|
|||
sect.sct_item[I_CIVIL] = civ - newmil;
|
||||
pr("%3d enlisted in %s (%d)\n", newmil,
|
||||
xyas(sect.sct_x, sect.sct_y, player->cnum), mil + newmil);
|
||||
if (sect.sct_mobil > 0) {
|
||||
sect.sct_mobil = (u_char)((float)sect.sct_mobil *
|
||||
(1.0 - (float)newmil / (float)civ));
|
||||
}
|
||||
if (sect.sct_mobil > 0)
|
||||
sect.sct_mobil *= 1.0 - (double)newmil / (double)civ;
|
||||
putsect(§);
|
||||
if (totalmil >= 10000) {
|
||||
pr("Rioting in induction center interrupts enlistment\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue