ship: Unbreak MOB_ACCESS real-time mobility update for ships

Ships owned by countries with even country number don't gain mobility
in real-time.  This is due to a classic brown-paperbag typo in the
condition guarding mob_inc_ship() in shp_postread(): & instead of &&.
Fix it.

Fixes: dd9e393b3 "subs: Simplify MOB_ACCESS mobility update", v4.4.0
Reported-by: Phil Miron <Philthy74@hotmail.com>
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2021-01-24 17:11:26 +01:00
parent e23882161e
commit f69db5e413

View file

@ -56,7 +56,7 @@ shp_postread(int n, void *ptr)
player->owner = (player->god || sp->shp_own == player->cnum);
if (opt_MOB_ACCESS & sp->shp_own && !update_running)
if (opt_MOB_ACCESS && sp->shp_own && !update_running)
mob_inc_ship(sp, game_tick_to_now(&sp->shp_access));
}