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:
parent
e23882161e
commit
f69db5e413
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ shp_postread(int n, void *ptr)
|
||||||
|
|
||||||
player->owner = (player->god || sp->shp_own == player->cnum);
|
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));
|
mob_inc_ship(sp, game_tick_to_now(&sp->shp_access));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue