]> git.pond.sub.org Git - empserver/commit
Fix misdirected nuclear detonation output
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Jun 2010 13:03:35 +0000 (15:03 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 21 Jun 2010 19:03:21 +0000 (21:03 +0200)
commit891ea01b1faf9a99e5589755d19e34413c5fb884
tree44d5406aed346dafe24ad1449820b011528586b1
parent10d316660ed2b15459b1aab2fe6ae26f1d777af0
Fix misdirected nuclear detonation output

Output went to the owner of the nuke instead of the player.
Fortunately, they're the same in normal usage.  They can differ only
when a deity drops a foreign nuke from a foreign plane.

The fix also cleans up a misuse of mpr() in kaboom(): it used multiple
calls to print a single line, which 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.  Fortunately, that
could happen only when a deity drops a foreign nuke.  Before commit
a269cdd7 (v4.3.23), it could also happen for missions.

Broken in Empire 2.
src/lib/subs/detonate.c