From 7974edd381990b78329e15f62ce7352cef667a93 Mon Sep 17 00:00:00 2001 From: Nathan Fulton Date: Wed, 31 Aug 2016 09:06:51 -0400 Subject: [PATCH] Fix processor bug --- game/Processor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/game/Processor.cpp b/game/Processor.cpp index 0b622fb..1d7ad8d 100644 --- a/game/Processor.cpp +++ b/game/Processor.cpp @@ -350,6 +350,11 @@ BeginStateMachine SetState(kstProcessorPutMiner); } else { lbError: + // The miner spot was reserved while the gob was being built. Since the new + // miner wasn't created, clear the spot so other miners can use the processor. + + Assert(m_pstruc->ctx == 3 && m_pstruc->cty == 2); + gsim.GetLevel()->GetTerrainMap()->ClearFlags(TcFromWc(m_wx) + 1, TcFromWc(m_wy) + m_pstruc->cty, 1, 1, kbfStructure); SetState(kstIdle); } Activate();