/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
#include <config.h>
-#include <string.h>
+#include "damage.h"
+#include "file.h"
+#include "land.h"
+#include "map.h"
#include "misc.h"
-#include "player.h"
#include "nat.h"
-#include "retreat.h"
-#include "ship.h"
-#include "land.h"
-#include "sect.h"
#include "news.h"
-#include "xy.h"
#include "nsc.h"
+#include "optlist.h"
#include "path.h"
-#include "file.h"
-#include "damage.h"
+#include "player.h"
#include "prototypes.h"
-#include "optlist.h"
+#include "retreat.h"
+#include "sect.h"
+#include "ship.h"
+#include "xy.h"
static int findcondition(char);
static int retreat_land1(struct lndstr *, char, int);
return 0;
}
- n = (-1 * MAX_RETREAT);
+ n = -MAX_RETREAT;
stopping = 0;
while (!stopping && n) {
dx = dy = 0;
mines = sect.sct_mines;
changed = 0;
if ((mcp->m_flags & M_SWEEP) && sect.sct_type == SCT_WATER) {
- sp->shp_mobil -= mobcost;
max = mcp->m_item[I_SHELL];
shells = sp->shp_item[I_SHELL];
for (m = 0; mines > 0 && m < 5; m++) {
return 0;
}
- n = (-1 * MAX_RETREAT);
+ n = -MAX_RETREAT;
stopping = 0;
while (!stopping && n) {
dx = dy = 0;