Mercurial > hg > openttd
changeset 8242:2114c740d1dd draft
(svn r11806) -Fix (r11793) [FS#1638]: sign inversion when updating income and expenses
author | glx <glx@openttd.org> |
---|---|
date | Thu, 10 Jan 2008 15:51:34 +0000 |
parents | 4648f777da55 |
children | 286575c90557 |
files | src/players.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/players.cpp +++ b/src/players.cpp @@ -204,14 +204,14 @@ 1 << EXPENSES_ROADVEH_INC | 1 << EXPENSES_AIRCRAFT_INC | 1 << EXPENSES_SHIP_INC, cost.GetExpensesType())) { - p->cur_economy.income += cost.GetCost(); + p->cur_economy.income -= cost.GetCost(); } else if (HasBit(1 << EXPENSES_TRAIN_RUN | 1 << EXPENSES_ROADVEH_RUN | 1 << EXPENSES_AIRCRAFT_RUN | 1 << EXPENSES_SHIP_RUN | 1 << EXPENSES_PROPERTY | 1 << EXPENSES_LOAN_INT, cost.GetExpensesType())) { - p->cur_economy.expenses += cost.GetCost(); + p->cur_economy.expenses -= cost.GetCost(); } InvalidatePlayerWindows(p);