check_trade() sets plane and land unit mobility to zero on trade.
Even when it's negative. Fix to leave it alone then.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
destroyed, and its owner builds a new one that gets the same number,
it will go on the trading market automatically.
.s1
-If a plane has negative mobility, then gets traded, mobility
-goes to 0.
-.s1
If two countries are cooperating,
its possible to raid an enemy airport and steal the planes
by putting them out to trade.
if (opt_MOB_ACCESS) {
tg.plane.pln_mobil = -(etu_per_update / sect_mob_neg_factor);
game_tick_to_now(&tg.plane.pln_access);
- } else {
+ } else if (tg.plane.pln_mobil > 0) {
tg.plane.pln_mobil = 0;
}
tg.plane.pln_harden = 0;
if (opt_MOB_ACCESS) {
tg.land.lnd_mobil = -(etu_per_update / sect_mob_neg_factor);
game_tick_to_now(&tg.land.lnd_access);
- } else {
+ } else if (tg.plane.pln_mobil > 0) {
tg.land.lnd_mobil = 0;
}
tg.land.lnd_harden = 0;