]> git.pond.sub.org Git - empserver/commit
subs: Simplify checks whether a ship just read exists
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jul 2016 08:19:20 +0000 (10:19 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:09:18 +0000 (20:09 +0200)
commit6ed6d658d1a40c7f68eca75896a9ff4e69eee647
treeb3100690fb26f15a3759f3d3d01b9e8101c0b842
parent0c6d1e422e33f916e7be764dc9ed4e2f1f81e5fe
subs: Simplify checks whether a ship just read exists

Ships with efficiency below the minimum have their owner set to zero
on write to the ship file.  Therefore, a ship just read from the ship
file exists unless its owner is zero.  Additionally checking
efficiency is redundant.  Same for planes and land units.  Drop
obviously redundant efficiency checks.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/list.c
src/lib/subs/plnsub.c