mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(cherry picked from commit 21813fbe8b
)
This commit is contained in:
parent
436178cbd4
commit
4f58a0f3c5
@ -209,7 +209,7 @@ Money CalculateHostileTakeoverValue(const Company *c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int quarter = 0; quarter < 4; quarter++) {
|
for (int quarter = 0; quarter < 4; quarter++) {
|
||||||
value += std::max<Money>(c->old_economy[quarter].income - c->old_economy[quarter].expenses, 0) * 2;
|
value += std::max<Money>(c->old_economy[quarter].income + c->old_economy[quarter].expenses, 0) * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::max<Money>(value, 1);
|
return std::max<Money>(value, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user