| 14 | } |
| 15 | |
| 16 | void ParticleTypeExt::ExtData::LoadFromINIFile(CCINIClass* const pINI) |
| 17 | { |
| 18 | auto pThis = this->OwnerObject(); |
| 19 | const char* pSection = pThis->ID; |
| 20 | INI_EX exINI(pINI); |
| 21 | |
| 22 | this->Gas_MaxDriftSpeed.Read(exINI, pSection, "Gas.MaxDriftSpeed"); |
| 23 | |
| 24 | if (pThis->StateAIAdvance == 0 && pThis->StartStateAI < pThis->EndStateAI) |
| 25 | { |
| 26 | Debug::FatalErrorAndExit(Debug::ExitCode::BadINIUsage, |
| 27 | "[%s] has StateAIAdvance=0 in conjunction with StartStateAI value less than EndStateAI.\n", pSection); |
| 28 | pThis->StateAIAdvance = 1; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | void ParticleTypeExt::ExtData::LoadFromStream(PhobosStreamReader& Stm) |
| 33 | { |