b-casey / OpenSMACX

A project to decompile SMAC/X to C++ with the long term goal of creating a full open source clone.
GNU General Public License v3.0
52 stars 4 forks source link

Quick Start game has potential for game to freeze if Hive is one of factions #21

Open b-casey opened 4 years ago

b-casey commented 4 years ago

The problem is inside the primary quick start function: time_warp().

What happens is when trying to assign the first eight secret projects, there is a specific exclusion for the Hive to be given Citizens Defense Force along with an exclusion for any faction from being assigned Empath Guild. The problem happens when all the other SPs are assigned but the game attempts to assign another one with only Citizens and Empath left. The game goes into an infinite loop, freezing up.

Problematic loop start: 005AF570 End of loop: 005AF5B0