From 4693fb6076d468dd4cb7f823138409c9fcebc64f Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sun, 21 Jan 2007 11:38:04 +0000 Subject: [PATCH] (do_mob_ship): Combine to two duplicate blocks of code. --- src/lib/update/mobility.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/lib/update/mobility.c b/src/lib/update/mobility.c index 08644aad..dacf0400 100644 --- a/src/lib/update/mobility.c +++ b/src/lib/update/mobility.c @@ -288,16 +288,8 @@ do_mob_ship(struct shpstr *sp, int etus) return; } - if (opt_FUEL == 0) { /* only a bit to do ... */ - value = sp->shp_mobil + ((float)etus * ship_mob_scale); - if (value > ship_mob_max) - value = ship_mob_max; - sp->shp_mobil = value; - return; /* so we ship the FUEL stuff */ - } - /* opt_FUEL in force */ - if (mchr[(int)sp->shp_type].m_fuelu == 0) { + if (opt_FUEL == 0 || mchr[(int)sp->shp_type].m_fuelu == 0) { value = sp->shp_mobil + (float)etus * ship_mob_scale; if (value > ship_mob_max) value = ship_mob_max;