(caploss): Remove the moving of a sacked capital.

This corrects the incorrect display of the old capital in the nation output.

(caploss): Remove unnecessary include files.
This commit is contained in:
Ron Koenderink 2005-12-18 19:54:44 +00:00
parent 7944db242c
commit e3459cba5d

View file

@ -35,13 +35,8 @@
#include "misc.h" #include "misc.h"
#include "player.h" #include "player.h"
#include "nat.h" #include "nat.h"
#include "sect.h"
#include "file.h" #include "file.h"
#include "xy.h"
#include "news.h" #include "news.h"
#include "path.h"
#include "loan.h"
#include "commodity.h"
#include "prototypes.h" #include "prototypes.h"
#include "optlist.h" #include "optlist.h"
@ -53,8 +48,6 @@ caploss(struct sctstr *sp, natid coun, s_char *msg)
struct comstr comm; struct comstr comm;
long lose; long lose;
long gain; long gain;
struct sctstr sect;
int n;
int loan_num = 0; int loan_num = 0;
int comm_num = 0; int comm_num = 0;
@ -75,10 +68,6 @@ caploss(struct sctstr *sp, natid coun, s_char *msg)
gain = lose = natp->nat_money / 2; gain = lose = natp->nat_money / 2;
if (lose < 3000) if (lose < 3000)
lose = 3000; lose = 3000;
n = roll(6);
getsect(sp->sct_x + diroff[n][0], sp->sct_y + diroff[n][1], &sect);
natp->nat_xcap = sect.sct_x;
natp->nat_ycap = sect.sct_y;
natp->nat_money -= lose; natp->nat_money -= lose;
/* Your capital has now been sacked, no more sacking until you reset it */ /* Your capital has now been sacked, no more sacking until you reset it */
natp->nat_flags |= NF_SACKED; natp->nat_flags |= NF_SACKED;