#include <ctype.h>
#include "commands.h"
-#include "empobj.h"
#include "optlist.h"
#include "unit.h"
prship(&item.ship));
continue;
}
- if (opt_TRADESHIPS
- && (mchr[item.ship.shp_type].m_flags & M_TRADE)) {
+ if (mchr[item.ship.shp_type].m_flags & M_TRADE) {
pr("WARNING: You only collect money from trade ships if you \"scuttle\" them!\n");
sprintf(prompt,
"Are you really sure that you want to scrap %s (n)? ",
if (!player->owner
&& relations_with(sect.sct_own, player->cnum) != ALLIED) {
pr("%s is not in an allied sector!\n",
- obj_nameof(&item.gen));
+ unit_nameof(&item.gen));
continue;
}
if (type == EF_PLANE
}
pr("%s scrapped in %s\n",
- obj_nameof(&item.gen),
+ unit_nameof(&item.gen),
xyas(item.gen.x, item.gen.y, player->cnum));
unit_drop_cargo(&item.gen, sect.sct_own);
if (type == EF_SHIP) {