summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/ModelInfo.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-13 20:54:25 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-13 20:54:25 +0200
commit3b0cd93f89a9fea54b155fdae15ec56c6291c2cc (patch)
treee32278de01df4baf561b3966ef239bd045372e60 /src/modelinfo/ModelInfo.cpp
parentobviously forgot about it (diff)
parentMerge pull request #412 from whampson/save-stuff (diff)
downloadre3-3b0cd93f89a9fea54b155fdae15ec56c6291c2cc.tar
re3-3b0cd93f89a9fea54b155fdae15ec56c6291c2cc.tar.gz
re3-3b0cd93f89a9fea54b155fdae15ec56c6291c2cc.tar.bz2
re3-3b0cd93f89a9fea54b155fdae15ec56c6291c2cc.tar.lz
re3-3b0cd93f89a9fea54b155fdae15ec56c6291c2cc.tar.xz
re3-3b0cd93f89a9fea54b155fdae15ec56c6291c2cc.tar.zst
re3-3b0cd93f89a9fea54b155fdae15ec56c6291c2cc.zip
Diffstat (limited to 'src/modelinfo/ModelInfo.cpp')
-rw-r--r--src/modelinfo/ModelInfo.cpp17
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);