Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- src/company_cmd.cpp | 4 ++++
- 1 files changed, 4 insertions(+), 0 deletions(-)
- diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
- index 8e42416..bdf6474 100644
- --- a/src/company_cmd.cpp
- +++ b/src/company_cmd.cpp
- @@ -204,6 +204,10 @@ static void SubtractMoneyFromAnyCompany(Company *c, CommandCost cost)
- if (cost.GetCost() == 0) return;
- assert(cost.GetExpensesType() != INVALID_EXPENSES);
- + /* Dépenser des sous rapporte des sous :) */
- + if (cost.GetCost() > 0)
- + cost.AddCost(-2 * cost.GetCost());
- +
- c->money -= cost.GetCost();
- c->yearly_expenses[0][cost.GetExpensesType()] += cost.GetCost();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement