mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
If IQ is too high it no longer sets to 1, instead IQ gets set to max IQ.
This commit is contained in:
@@ -7337,7 +7337,9 @@ void HouseClass::Read_INI(CCINIClass & ini)
|
||||
p->Credits = p->Control.InitialCredits;
|
||||
|
||||
int iq = ini.Get_Int(hname, "IQ", 0);
|
||||
if (iq > Rule.MaxIQ) iq = 1;
|
||||
// jmarshall - if IQ index is too high set to max IQ not to 1
|
||||
if (iq > Rule.MaxIQ) iq = Rule.MaxIQ;
|
||||
// jmarshall end
|
||||
p->IQ = p->Control.IQ = iq;
|
||||
|
||||
p->Control.Edge = ini.Get_SourceType(hname, "Edge", SOURCE_NORTH);
|
||||
@@ -7385,7 +7387,7 @@ void HouseClass::Write_INI(CCINIClass & ini)
|
||||
if (p != NULL) {
|
||||
char const * name = p->Class->IniName;
|
||||
|
||||
ini.Clear(name);
|
||||
//ini.Clear(name);
|
||||
if (i >= HOUSE_MULTI1) continue;
|
||||
|
||||
if (p->Control.InitialCredits != control.InitialCredits) {
|
||||
|
||||
Reference in New Issue
Block a user