]> git.pond.sub.org Git - empserver/commit
ship: Unbreak MOB_ACCESS real-time mobility update for ships
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 24 Jan 2021 16:11:26 +0000 (17:11 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 6 Feb 2021 15:55:37 +0000 (16:55 +0100)
commitf69db5e4130c9d60b33e8ce8fed4bad8c94b60af
tree163e536dcc9888f5ec99d94d1cdfdc81d769a26a
parente23882161e21b6e14dc9283933967d344f231954
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>
src/lib/subs/ship.c