@@ -79,7 +79,7 @@ void FactoryClass::AI()
7979{
8080 if (!m_IsSuspended && (m_Object != nullptr || m_SpecialItem != -1 )) {
8181 if (!Has_Completed ()) {
82- if (m_ProductionTime.Stage_Changed ()) {
82+ if (m_ProductionTime.Stage_AI ()) {
8383 m_IsDifferent = true ;
8484 unsigned int tick_cost = std::min (Cost_Per_Tick (), m_Balance);
8585 if (m_Owner->Available_Money () >= tick_cost) {
@@ -95,7 +95,7 @@ void FactoryClass::AI()
9595 #endif
9696 if (m_ProductionTime.Get_Stage () == MAX_CLOCK_STAGES) {
9797 m_IsSuspended = true ;
98- m_ProductionTime.Set_Delay (0 );
98+ m_ProductionTime.Set_Rate (0 );
9999 m_Owner->Spend_Money (m_Balance);
100100 m_Balance = 0 ;
101101 }
@@ -123,7 +123,7 @@ BOOL FactoryClass::Set(TechnoTypeClass &objecttype, HouseClass &house)
123123 m_IsSuspended = true ;
124124
125125 m_ProductionTime.Set_Stage (0 );
126- m_ProductionTime.Set_Delay (0 );
126+ m_ProductionTime.Set_Rate (0 );
127127
128128 m_Balance = 0 ;
129129
@@ -161,7 +161,7 @@ BOOL FactoryClass::Set(int &special, HouseClass &house)
161161 m_Balance = 0 ;
162162
163163 m_ProductionTime.Set_Stage (0 );
164- m_ProductionTime.Set_Delay (0 );
164+ m_ProductionTime.Set_Rate (0 );
165165
166166 return m_SpecialItem != -1 ;
167167}
@@ -178,14 +178,14 @@ void FactoryClass::Set(TechnoClass &object)
178178 m_Balance = 0 ;
179179
180180 m_ProductionTime.Set_Stage (0 );
181- m_ProductionTime.Set_Delay (0 );
181+ m_ProductionTime.Set_Rate (0 );
182182}
183183
184184BOOL FactoryClass::Suspend ()
185185{
186186 if (!m_IsSuspended) {
187187 m_IsSuspended = true ;
188- m_ProductionTime.Set_Delay (0 );
188+ m_ProductionTime.Set_Rate (0 );
189189 return true ;
190190 }
191191 return false ;
@@ -216,7 +216,7 @@ BOOL FactoryClass::Abandon()
216216 m_IsDifferent = true ;
217217
218218 m_ProductionTime.Set_Stage (0 );
219- m_ProductionTime.Set_Delay (0 );
219+ m_ProductionTime.Set_Rate (0 );
220220
221221 ++g_ScenarioInit;
222222
@@ -264,15 +264,15 @@ BOOL FactoryClass::Completed()
264264 m_IsSuspended = true ;
265265 m_IsDifferent = true ;
266266 m_ProductionTime.Set_Stage (0 );
267- m_ProductionTime.Set_Delay (0 );
267+ m_ProductionTime.Set_Rate (0 );
268268 return true ;
269269 }
270270 if (m_SpecialItem != -1 && m_ProductionTime.Get_Stage () == MAX_CLOCK_STAGES) {
271271 m_SpecialItem = -1 ;
272272 m_IsSuspended = true ;
273273 m_IsDifferent = true ;
274274 m_ProductionTime.Set_Stage (0 );
275- m_ProductionTime.Set_Delay (0 );
275+ m_ProductionTime.Set_Rate (0 );
276276 return true ;
277277 }
278278 return false ;
0 commit comments