(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
|
@ -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(§);
|
||||
|
@ -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(§);
|
||||
|
@ -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(§);
|
||||
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue