]> git.pond.sub.org Git - empserver/commit
Fix lnd_fire() ammo sanity check
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 26 Apr 2008 08:15:05 +0000 (10:15 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 26 Apr 2008 08:15:05 +0000 (10:15 +0200)
commit61998d2316ed30e4fd0d7750ab3f23cd5f9dbeb0
tree8eb93118e0af89e2b59ac6f04f20526f0c143289
parent9e19123abfa68f53c58a045b0ed31d3502028b76
Fix lnd_fire() ammo sanity check

Checking l_ammo before lnd_dam() oopses when something attempts to
fire from a land unit type that can't fire (l_dam == 0) and uses no
ammo.  Such usage is perfectly fine.  Move the check to the correct
place.
src/lib/subs/landgun.c