Drop add's undocumented land unit destruction feature

It doesn't destroy ships, planes or nukes, either.
This commit is contained in:
Markus Armbruster 2011-10-30 15:46:42 +01:00
parent 062c660e28
commit a9e485b13e

View file

@ -38,7 +38,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include "commands.h" #include "commands.h"
#include "land.h"
#include "optlist.h" #include "optlist.h"
#include "plague.h" #include "plague.h"
@ -57,8 +56,6 @@ add(void)
char buf[1024]; char buf[1024];
char *p; char *p;
int stat; int stat;
struct nstr_item ni;
struct lndstr land;
for (freecn = 0; NULL != (natp = getnatp(freecn)); freecn++) { for (freecn = 0; NULL != (natp = getnatp(freecn)); freecn++) {
if (natp->nat_stat == STAT_UNUSED) if (natp->nat_stat == STAT_UNUSED)
@ -124,14 +121,6 @@ add(void)
"Check, wipe, or ignore existing sectors (c|w|i) ", buf); "Check, wipe, or ignore existing sectors (c|w|i) ", buf);
if (!p) if (!p)
return RET_SYN; return RET_SYN;
snxtitem_all(&ni, EF_LAND);
while (nxtitem(&ni, &land)) {
if (land.lnd_own == coun) {
land.lnd_effic = 0;
pr("Land unit %d wiped\n", land.lnd_uid);
putland(land.lnd_uid, &land);
}
}
strcpy(natp->nat_cnam, cntryname); strcpy(natp->nat_cnam, cntryname);
strcpy(natp->nat_pnam, pname); strcpy(natp->nat_pnam, pname);
if (*p != 'w' && *p != 'c') { if (*p != 'w' && *p != 'c') {