Fix scrap and scuttle output when there's output about cargo
scra() and scut() printed their "scrapped in" / "scuttled in" message in two parts. Messages for scrapped / scuttled cargo were printed between the parts. Fix by printing in one go, after the cargo messages.
This commit is contained in:
parent
0103372471
commit
06dd3d80ac
2 changed files with 6 additions and 10 deletions
|
@ -131,7 +131,6 @@ scut(void)
|
|||
if (!scuttle_tradeship(&item.ship, 1))
|
||||
continue;
|
||||
}
|
||||
pr("%s", prship(&item.ship));
|
||||
scuttle_ship(&item.ship);
|
||||
} else if (type == EF_LAND) {
|
||||
if (item.land.lnd_ship >= 0) {
|
||||
|
@ -139,15 +138,14 @@ scut(void)
|
|||
prland(&item.land));
|
||||
continue;
|
||||
}
|
||||
pr("%s", prland(&item.land));
|
||||
scuttle_land(&item.land);
|
||||
} else {
|
||||
pr("%s", prplane(&item.plane));
|
||||
item.plane.pln_effic = 0;
|
||||
putplane(item.plane.pln_uid, &item.plane);
|
||||
}
|
||||
pr(" scuttled in %s\n",
|
||||
xyas(item.ship.shp_x, item.ship.shp_y, player->cnum));
|
||||
pr("%s scuttled in %s\n",
|
||||
obj_nameof(&item.gen),
|
||||
xyas(item.gen.x, item.gen.y, player->cnum));
|
||||
}
|
||||
|
||||
return RET_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue