summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-25 11:26:37 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-25 11:26:37 +0200
commitbb14d9689fbd28ea2b8e340472e3e593e4b84c1e (patch)
tree8f30747dab46c7ccf3ade06946aab1956664e798 /src/core
parentMerge remote-tracking branch 'upstream/master' (diff)
parentMerge branch 'master' of github.com:gtamodding/re3 (diff)
downloadre3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar
re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.gz
re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.bz2
re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.lz
re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.xz
re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.zst
re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Streaming.cpp3
-rw-r--r--src/core/main.cpp4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp
index 8124d11c..a76e9038 100644
--- a/src/core/Streaming.cpp
+++ b/src/core/Streaming.cpp
@@ -754,7 +754,8 @@ CStreaming::RequestSpecialModel(int32 modelId, const char *modelName, int32 flag
}else
RemoveModel(modelId);
- ms_pExtraObjectsDir->FindItem(modelName, pos, size);
+ bool found = ms_pExtraObjectsDir->FindItem(modelName, pos, size);
+ assert(found);
mi->ClearTexDictionary();
if(CTxdStore::FindTxdSlot(modelName) == -1)
mi->SetTexDictionary("generic");
diff --git a/src/core/main.cpp b/src/core/main.cpp
index 7c1f7938..ec37fa28 100644
--- a/src/core/main.cpp
+++ b/src/core/main.cpp
@@ -91,7 +91,6 @@ void GameInit(void);
void SystemInit(void);
void TheGame(void);
-void DebugMenuInit(void) {}
void DebugMenuPopulate(void);
@@ -344,6 +343,8 @@ static void
Terminate3D(void)
{
CGame::ShutdownRenderWare();
+
+ DebugMenuShutdown();
RsRwTerminate();
@@ -794,6 +795,7 @@ RenderDebugShit(void)
CRenderer::RenderCollisionLines();
ThePaths.DisplayPathData();
CDebug::DrawLines();
+ DefinedState();
#endif
}