]> git.pond.sub.org Git - empserver/commit
Improve launch diagnostic messages, switch off supply
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 5 Oct 2009 09:40:39 +0000 (05:40 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 12 Dec 2009 15:28:52 +0000 (16:28 +0100)
commit528df9acba6e6e3ae72a1ae5e02a09f36026fe55
tree624ebf9db06fb6e558242f510ff23836bf8647e7
parentcf960a573ca3132735b888a48416ee37d123f734
Improve launch diagnostic messages, switch off supply

msl_equip() used mission_pln_equip(), which is for automatic defenses,
and therefore silent.  Its users launch_as(), launch_missile() and
launch_sat() printed failure diagnostics based on assumptions on what
could go wrong.

Switch to the appropriate function for commands, pln_equip(), and
remove the guesswork.  Implement mission 'i' there.  When launching
from a foreign base, its owner now gets informed.  Unimportant at this
time, as players can't easily deploy missiles in foreign bases.

This change also switches off automatic supply for launch.  Consistent
with bomb.
include/prototypes.h
src/lib/commands/laun.c
src/lib/subs/mslsub.c
src/lib/subs/plnsub.c