]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/supply.c
(do_conv, enli, explore, move, shoo, s_commod): sct_mobil was changed
[empserver] / src / lib / subs / supply.c
index a417f3a99a4af8e5d4692a81d9f6d380742a7305..7f0e805a64cf46b8d00bcddfaa35abf8fc429a3d 100644 (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);