]> git.pond.sub.org Git - empserver/commit
Refuse to auto-scuttle where it doesn't pay
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 13 Sep 2008 19:57:36 +0000 (15:57 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 15 Sep 2008 22:59:26 +0000 (18:59 -0400)
commitfaca0eeac583a985ed221785f99017f77881215d
treee87fbfbbfaf59f2c93bbd30d7e9a38b8260614a1
parent693c1a64c3bc72e8bc071ecd079ed12ae0d13b74
Refuse to auto-scuttle where it doesn't pay

When called from the scuttle command, scuttle_tradeship() asks for
confirmation when scuttling doesn't pay.  When called from the autonav
code, it can't ask.  Change it to fail then, and use that in
nav_ship() to avoid scuttle where it doesn't pay.  Also simplify some.
src/lib/commands/scut.c
src/lib/update/nav_ship.c