diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-04-13 04:32:11 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-04-13 04:42:02 +0200 |
commit | 60c412149dd0788e31398667e515a17c1a9b449a (patch) | |
tree | 7f79cf8fb0887478aee69e08b5f73fca22996ad4 /src/modelinfo/ModelInfo.cpp | |
parent | Merge pull request #409 from erorcun/erorcun (diff) | |
download | re3-60c412149dd0788e31398667e515a17c1a9b449a.tar re3-60c412149dd0788e31398667e515a17c1a9b449a.tar.gz re3-60c412149dd0788e31398667e515a17c1a9b449a.tar.bz2 re3-60c412149dd0788e31398667e515a17c1a9b449a.tar.lz re3-60c412149dd0788e31398667e515a17c1a9b449a.tar.xz re3-60c412149dd0788e31398667e515a17c1a9b449a.tar.zst re3-60c412149dd0788e31398667e515a17c1a9b449a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/modelinfo/ModelInfo.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/modelinfo/ModelInfo.cpp b/src/modelinfo/ModelInfo.cpp index d956abaa..b6a95992 100644 --- a/src/modelinfo/ModelInfo.cpp +++ b/src/modelinfo/ModelInfo.cpp @@ -234,12 +234,6 @@ CModelInfo::RemoveColModelsFromOtherLevels(eLevelName level) } } -CStore<CInstance, MLOINSTANCESIZE>& -CModelInfo::GetMloInstanceStore() -{ - return CModelInfo::ms_mloInstanceStore; -} - void CModelInfo::ConstructMloClumps() { @@ -247,6 +241,17 @@ CModelInfo::ConstructMloClumps() ms_mloModelStore.store[i].ConstructClump(); } +void +CModelInfo::ReInit2dEffects() +{ + ms_2dEffectStore.clear(); + + for (int i = 0; i < MODELINFOSIZE; i++) { + if (ms_modelInfoPtrs[i]) + ms_modelInfoPtrs[i]->Init2dEffects(); + } +} + STARTPATCHES InjectHook(0x50B310, CModelInfo::Initialise, PATCH_JUMP); InjectHook(0x50B5B0, CModelInfo::ShutDown, PATCH_JUMP); |