(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:
Markus Armbruster 2006-03-23 07:58:03 +00:00
parent 5c423d1e42
commit aebcc536e4
6 changed files with 14 additions and 18 deletions

View file

@ -236,7 +236,7 @@ s_commod(int own, int x, int y, i_type type, int total_wanted,
n = 0;
if (n > sect.sct_mobil)
n = sect.sct_mobil;
sect.sct_mobil -= (u_char)n;
sect.sct_mobil -= n;
if (actually_doit)
putsect(&sect);
@ -254,7 +254,7 @@ s_commod(int own, int x, int y, i_type type, int total_wanted,
n = 0;
if (n > sect.sct_mobil)
n = sect.sct_mobil;
sect.sct_mobil -= (u_char)n;
sect.sct_mobil -= n;
if (actually_doit)
putsect(&sect);
@ -308,7 +308,7 @@ s_commod(int own, int x, int y, i_type type, int total_wanted,
n = 0;
if (n > sect.sct_mobil)
n = sect.sct_mobil;
sect.sct_mobil -= (u_char)n;
sect.sct_mobil -= n;
if (actually_doit) {
putship(ship.shp_uid, &ship);
putsect(&sect);
@ -325,7 +325,7 @@ s_commod(int own, int x, int y, i_type type, int total_wanted,
n = 0;
if (n > sect.sct_mobil)
n = sect.sct_mobil;
sect.sct_mobil -= (u_char)n;
sect.sct_mobil -= n;
if (actually_doit) {
putship(ship.shp_uid, &ship);