]> git.pond.sub.org Git - empserver/commit
Fix value of detonate() when target sector takes no damage
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 7 Sep 2009 19:20:41 +0000 (15:20 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 8 Dec 2009 07:15:50 +0000 (08:15 +0100)
commite0cb1b66b38c8da75b3b78ad0c57de3c893ddb88
tree7291eefc16879ef3b5cb99206bd9c622f0cd8f99
parent8718a9428a9e7de3fac864a520aac6c88f673259
Fix value of detonate() when target sector takes no damage

This can happen when hitting a sanctuary, or for ridiculously impotent
nukes: groundburst for dam < 5, airburst for dam < 7.  detonate()
returned unpredictable value then.

This screwed up interdiction damage, except for missiles interdicting
ships or land units.  Since nothing can move into a sanctuary, the bug
bit only with ridiculously impotent nukes.
src/lib/subs/detonate.c