Rev. 1.26 screwed up return value for building, which was visible in

output of budget.  Reported by Stefan Hauser.
This commit is contained in:
Markus Armbruster 2006-05-21 20:24:36 +00:00
parent ba578e0e23
commit 0e14911d72

View file

@ -84,7 +84,7 @@ prod_plane(int etus, int natnum, int *bp, int buildem)
start_money = np->nat_money; start_money = np->nat_money;
upd_plane(pp, etus, np, bp, buildem); upd_plane(pp, etus, np, bp, buildem);
air_money[pp->pln_own] += np->nat_money - start_money; air_money[pp->pln_own] += np->nat_money - start_money;
if (buildem == 0) if (buildem == 0 || np->nat_money != start_money)
k++; k++;
if (player->simulation) if (player->simulation)
np->nat_money = start_money; np->nat_money = start_money;