]> git.pond.sub.org Git - empserver/commit
Remove unreachable code in sell()
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 26 Oct 2011 17:42:37 +0000 (19:42 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 29 Dec 2011 10:47:04 +0000 (11:47 +0100)
commit11d6e8ce80d39379625f785465d541554e75dfa2
tree09867fd196cfe740f2d4642696feab7a0192246a
parent845fc9eb56d33527fd691d6f710a7a057adc09b5
Remove unreachable code in sell()

sell used to search multiple sectors for sellable commodities, keeping
tally in totalcom.  It failed with message "No eligible" when none
could be found.

sell's second argument got changed to a single sector in Empire 3.  If
the sector can't sell, we return early.  Else, totalcom is positive.
Thus, the "No eligible" code is unreachable.  Remove it.
src/lib/commands/sell.c