Skip to content

Instantly share code, notes, and snippets.

@rubidium42
rubidium42 / 9300.diff
Created May 28, 2021 17:04
Idea to prevent bankrupting yourself with the last share
diff --git a/src/economy.cpp b/src/economy.cpp
index 35fcf57a5..089d8d6d0 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1969,7 +1969,7 @@ void CompaniesMonthlyLoop()
HandleEconomyFluctuations();
}
-static void DoAcquireCompany(Company *c)
+static void DoAcquireCompany(Company *c, bool take_over)