]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/mobility.c
(ship_bomb, deli, do_demo, fuel, grin, look_ship)
[empserver] / src / lib / update / mobility.c
index 4c4dcc8110cf7d65e4d20479cc83abbea7adbfaf..f1675558dafc02facd6fa58f35f41f260cc1c0b6 100644 (file)
@@ -365,7 +365,7 @@ do_mob_ship(struct shpstr *sp, int etus)
        d *= (double)mchr[(int)sp->shp_type].m_fuelu;
        d /= (double)fuel_mult;
        sp->shp_fuel -= (u_char)ldround(d, 1);
-       sp->shp_fuel = (u_char)min(sp->shp_fuel,
+       sp->shp_fuel = (u_char)MIN(sp->shp_fuel,
                                   mchr[(int)sp->shp_type].m_fuelc);
        sp->shp_mobil += (s_char)total_add;
     }
@@ -478,7 +478,7 @@ do_mob_land(struct lndstr *lp, int etus)
        d *= (double)lp->lnd_fuelu;
        d /= (double)fuel_mult;
        lp->lnd_fuel -= (u_char)ldround(d, 1);
-       lp->lnd_fuel = (u_char)min(lp->lnd_fuel, lp->lnd_fuelc);
+       lp->lnd_fuel = (u_char)MIN(lp->lnd_fuel, lp->lnd_fuelc);
        if (total_add + lp->lnd_mobil > land_mob_max) {
            total_add = land_mob_max - lp->lnd_mobil;
        }