]> git.pond.sub.org Git - empserver/commit
update: Separate MOB_ACCESS from normal mobility update
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 20 Jun 2016 17:47:15 +0000 (19:47 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:08:30 +0000 (20:08 +0200)
commit25d48124d0db2f7b77386f978c8bd40df946092b
tree23867520990d35f26c3453a57bd642869498f8f5
parentd8619027835603a5b5a03be8b3d4607d1e2ad3b3
update: Separate MOB_ACCESS from normal mobility update

The update uses mob_sect(), mob_ship(), mob_plane() and mob_land() for
two related, but different jobs: to give the previous turn's remaining
MOB_ACCESS mobility, and to give this update's new mobility.  The two
were probably conflated in an attempt to share code, but it actually
just complicates things.

Collect the MOB_ACCESS code in new function mob_access_all(), and the
normal mobility update code in new function mob_inc_all().

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/update.h
src/lib/update/main.c
src/lib/update/mobility.c