summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 5d0acd2ad..643047764 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -914,6 +914,15 @@ void StartupEconomy()
_economy.fluct = GB(Random(), 0, 8) + 168;
}
+
+Money GetPriceByIndex(uint8 index)
+{
+ if (index > NUM_PRICES) return 0;
+
+ return ((Money*)&_price)[index];
+}
+
+
Pair SetupSubsidyDecodeParam(const Subsidy* s, bool mode)
{
TileIndex tile;