Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.61 KB | None | 0 0
  1.  src/company_cmd.cpp |    4 ++++
  2.  1 files changed, 4 insertions(+), 0 deletions(-)
  3.  
  4. diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
  5. index 8e42416..bdf6474 100644
  6. --- a/src/company_cmd.cpp
  7. +++ b/src/company_cmd.cpp
  8. @@ -204,6 +204,10 @@ static void SubtractMoneyFromAnyCompany(Company *c, CommandCost cost)
  9.     if (cost.GetCost() == 0) return;
  10.     assert(cost.GetExpensesType() != INVALID_EXPENSES);
  11.  
  12. +   /* Dépenser des sous rapporte des sous :) */
  13. +   if (cost.GetCost() > 0)
  14. +       cost.AddCost(-2 * cost.GetCost());
  15. +
  16.     c->money -= cost.GetCost();
  17.     c->yearly_expenses[0][cost.GetExpensesType()] += cost.GetCost();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement