]> git.pond.sub.org Git - empserver/commit
subs: Clean up misuse of wu() around mission bomb damage
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 11 Jan 2015 12:06:54 +0000 (13:06 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 2 Mar 2015 07:20:50 +0000 (08:20 +0100)
commit4401cca0afa774ae575b7a5caaf77781117d4ef1
treeeb401416bbd96c5a01078909010306b6bde8547e
parent820d755e597bee13ec3f5d4b798d32de99953628
subs: Clean up misuse of wu() around mission bomb damage

Don't use multiple calls of wu() to print a single line, because that
creates a separate bulletin for each part.  The read command normally
merges the bulletins, but if the bulletins are more than five seconds
apart (clock jumped somehow), we get a bulletin header in the middle
of a line.  Unlikely to happen, but it also messes up pln_damage()'s
line wrapping (see commit e002bf2).  Clean it up.

The wu() misuse was introduced in Empire 2.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/mission.c