Merc contract renewal freezes interface

Issue #161 resolved
Thomas J. Moore created an issue

After renewing a merc's contract, the time interface is not available, time is paused, and it's impossible to restart. It's also impossible to get to the main menu any more, so the only thing I could do is force-kill the game from another console. I tried getting the renewal to happen in various different GUI states, but this bug happened every single time. Looking at the code, I'm not sure where it's expected to be unlocked, so I added an unlock at a likely spot, and it fixed the problem for me:

--- a/Build/Strategic/Merc_Contract.cc
+++ b/Build/Strategic/Merc_Contract.cc
@@ -122,6 +122,7 @@ void HandleContractRenewalSequence( )
                        // Stop and clear any on list...
                        ubNumContractRenewals = 0;
                        gfContractRenewalSquenceOn = FALSE;
+                       UnLockPauseState();
                }

                // Get soldier - if there is none, adavance to next

Comments (2)

  1. Log in to comment