* scut.c: Scuttle ships, planes or land units
*
* Known contributors to this file:
- * Markus Armbruster, 2004-2009
+ * Markus Armbruster, 2004-2011
*/
#include <config.h>
#include <ctype.h>
#include "commands.h"
-#include "empobj.h"
+#include "news.h"
#include "optlist.h"
#include "unit.h"
if (type == EF_SHIP) {
mp = &mchr[(int)item.ship.shp_type];
- if (opt_TRADESHIPS && (mp->m_flags & M_TRADE)) {
+ if (mp->m_flags & M_TRADE) {
if (!scuttle_tradeship(&item.ship, 1))
continue;
}
}
}
pr("%s scuttled in %s\n",
- obj_nameof(&item.gen),
+ unit_nameof(&item.gen),
xyas(item.gen.x, item.gen.y, player->cnum));
getsect(item.gen.x, item.gen.y, §);
if (sect.sct_own == item.gen.own)