(prod_land, prod_ship): Simplify.
This commit is contained in:
parent
c9dbe828bc
commit
745bdf7fd1
2 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ prod_land(int etus, int natnum, int *bp, int build)
|
||||||
start_money = np->nat_money;
|
start_money = np->nat_money;
|
||||||
upd_land(lp, etus, np, bp, build);
|
upd_land(lp, etus, np, bp, build);
|
||||||
lnd_money[lp->lnd_own] += np->nat_money - start_money;
|
lnd_money[lp->lnd_own] += np->nat_money - start_money;
|
||||||
if ((build && (np->nat_money != start_money)) || (!build))
|
if (!build || np->nat_money != start_money)
|
||||||
k++;
|
k++;
|
||||||
if (player->simulation)
|
if (player->simulation)
|
||||||
np->nat_money = start_money;
|
np->nat_money = start_money;
|
||||||
|
|
|
@ -93,7 +93,7 @@ prod_ship(int etus, int natnum, int *bp, int build)
|
||||||
if (build && !player->simulation) /* make sure to only autonav once */
|
if (build && !player->simulation) /* make sure to only autonav once */
|
||||||
nav_ship(sp); /* autonav the ship */
|
nav_ship(sp); /* autonav the ship */
|
||||||
sea_money[sp->shp_own] += np->nat_money - start_money;
|
sea_money[sp->shp_own] += np->nat_money - start_money;
|
||||||
if ((build && (np->nat_money != start_money)) || (!build))
|
if (!build || np->nat_money != start_money)
|
||||||
k++;
|
k++;
|
||||||
if (player->simulation)
|
if (player->simulation)
|
||||||
np->nat_money = start_money;
|
np->nat_money = start_money;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue