assault attack paradrop: Fix inconsistent support formatting
With offensive support but no defensive support, there's no empty line separating the support table from the text that follows. Fix that. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
c8e5b4fc50
commit
7be7ad98aa
2 changed files with 6 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
* Known contributors to this file:
|
||||
* Ken Stevens, 1995
|
||||
* Steve McClure, 1996-2000
|
||||
* Markus Armbruster, 2006-2014
|
||||
* Markus Armbruster, 2006-2015
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
@ -1590,7 +1590,7 @@ get_dsupport(char *outs, struct emp_qelem *list, struct combat *def,
|
|||
if (good)
|
||||
*outs = '\0';
|
||||
else
|
||||
sprintf(outs, "defender\t%1.2f\t%1.2f\t%1.2f\t%1.2f\n\n", df, ds,
|
||||
sprintf(outs, "defender\t%1.2f\t%1.2f\t%1.2f\t%1.2f\n", df, ds,
|
||||
du, dp);
|
||||
if (def->own) {
|
||||
if (good < 0)
|
||||
|
@ -1678,6 +1678,7 @@ att_get_support(int combat_mode, int ofort, int oship, int oland,
|
|||
pr("%s", osupports);
|
||||
if (*dsupportp != 1.0)
|
||||
pr("%s", dsupports);
|
||||
pr("\n");
|
||||
if (def->own) {
|
||||
wu(0, def->own, "\n\t\tsupport values\n");
|
||||
wu(0, def->own, "\t\tforts\tships\tunits\tplanes\n");
|
||||
|
@ -1685,6 +1686,7 @@ att_get_support(int combat_mode, int ofort, int oship, int oland,
|
|||
wu(0, def->own, "%s", osupports);
|
||||
if (*dsupportp != 1.0)
|
||||
wu(0, def->own, "%s", dsupports);
|
||||
wu(0, def->own, "\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue