bomb: Fix damage to mobility when bombing planes
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 1 Feb 2015 16:24:51 +0000 (17:24 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 2 Mar 2015 07:20:51 +0000 (08:20 +0100)
commit2575ea89402c8a32f1f30e85d2b6b2db21fe9970
tree98eebf734c95497a2735db12e07a710a6332e555
parentf4d8d64bb34dee75cb2485c130e125fdd3980c18
bomb: Fix damage to mobility when bombing planes

A bombed plane's mobility is multiplied by dam/100.0, i.e. the higher
the damage, the lower the mobility loss.  Has always been broken.  Fix
by computing the new mobility with damage(), like we do elsewhere.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/bomb.c