Remove pointless getFOO() from prewrite callbacks
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.
This commit is contained in:
parent
afcde86ca3
commit
d87801acaa
5 changed files with 0 additions and 15 deletions
|
@ -112,7 +112,6 @@ void
|
|||
lnd_prewrite(int n, void *ptr)
|
||||
{
|
||||
struct lndstr *llp = ptr;
|
||||
struct lndstr land;
|
||||
struct lndstr *lp;
|
||||
struct plnstr *pp;
|
||||
int i;
|
||||
|
@ -122,8 +121,6 @@ lnd_prewrite(int n, void *ptr)
|
|||
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));
|
||||
|
@ -150,7 +147,6 @@ lnd_prewrite(int n, void *ptr)
|
|||
}
|
||||
} else {
|
||||
item_prewrite(llp->lnd_item);
|
||||
getland(n, &land);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue