summaryrefslogtreecommitdiff
path: root/src/industry.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-11-13 15:15:25 +0000
committeralberth <alberth@openttd.org>2010-11-13 15:15:25 +0000
commitf22fb0d53db43e1e9ebeeda01ba8948656d537af (patch)
treec27fbb704848e8a5ed7f2956be0b2b3ace243c9f /src/industry.h
parent4d419b9f3e058be20f62e494829e8ae1b167e82b (diff)
downloadopenttd-f22fb0d53db43e1e9ebeeda01ba8948656d537af.tar.xz
(svn r21171) -Change: Reset industry build data at game start or load.
Diffstat (limited to 'src/industry.h')
-rw-r--r--src/industry.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/industry.h b/src/industry.h
index c65c65b48..16b3dc8f4 100644
--- a/src/industry.h
+++ b/src/industry.h
@@ -151,6 +151,8 @@ struct IndustryTypeBuildData {
uint16 max_wait; ///< Starting number of turns to wait (copied to #wait_count).
uint16 wait_count; ///< Number of turns to wait before trying to build again.
+ void Reset();
+
void GetIndustryTypeData(IndustryType it);
};
@@ -161,6 +163,8 @@ struct IndustryBuildData {
IndustryTypeBuildData builddata[NUM_INDUSTRYTYPES]; ///< Industry build data for every industry type.
uint32 wanted_inds; ///< Number of wanted industries (bits 31-16), and a fraction (bits 15-0).
+ void Reset();
+
void SetupTargetCount();
void TryBuildNewIndustry();
};