Empire3's C_SYNC code added these to sct_prewrite(), shp_prewrite(),
pln_prewrite(), lnd_prewrite() and nuk_prewrite(). They weren't
removed when C_SYNC was ripped out in 4.0.0.
lnd_prewrite(int n, void *ptr)
{
struct lndstr *llp = ptr;
- struct lndstr land;
struct lndstr *lp;
struct plnstr *pp;
int i;
llp->lnd_x, llp->lnd_y);
llp->lnd_own = 0;
- getland(n, &land);
-
for (i = 0; NULL != (lp = getlandp(i)); i++) {
if (lp->lnd_own && lp->lnd_land == n) {
mpr(lp->lnd_own, "%s MIA!\n", prland(lp));
}
} else {
item_prewrite(llp->lnd_item);
- getland(n, &land);
}
}
nuk_prewrite(int n, void *ptr)
{
struct nukstr *np = ptr;
- struct nukstr nuke;
if (np->nuk_effic == 0) {
if (np->nuk_own)
np->nuk_own = 0;
np->nuk_effic = 0;
}
-
- getnuke(n, &nuke);
}
int
pln_prewrite(int n, void *ptr)
{
struct plnstr *pp = ptr;
- struct plnstr plane;
struct nukstr *np;
int i;
}
}
}
- getplane(n, &plane);
}
char *
sct_prewrite(int id, void *ptr)
{
struct sctstr *sp = ptr;
- struct sctstr sect;
bridge_damaged(sp);
checksect(sp);
- getsect(sp->sct_x, sp->sct_y, §);
}
void
shp_prewrite(int n, void *ptr)
{
struct shpstr *sp = ptr;
- struct shpstr ship;
struct lndstr *lp;
struct plnstr *pp;
int i;
makelost(EF_SHIP, sp->shp_own, sp->shp_uid, sp->shp_x, sp->shp_y);
sp->shp_own = 0;
- getship(n, &ship);
-
for (i = 0; NULL != (lp = getlandp(i)); i++) {
if (lp->lnd_own && lp->lnd_ship == n) {
mpr(lp->lnd_own, "%s sunk!\n", prland(lp));
}
} else {
item_prewrite(sp->shp_item);
- getship(n, &ship);
}
}