summaryrefslogtreecommitdiffstats
path: root/src/core/Streaming.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-07 13:21:35 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-07 13:21:35 +0100
commit69d30f22046dfddc79e1e169ed7d90bf3b920335 (patch)
tree979b0993600772f6d56de1f9b03c3d82459000c5 /src/core/Streaming.h
parentreorder (diff)
downloadre3-69d30f22046dfddc79e1e169ed7d90bf3b920335.tar
re3-69d30f22046dfddc79e1e169ed7d90bf3b920335.tar.gz
re3-69d30f22046dfddc79e1e169ed7d90bf3b920335.tar.bz2
re3-69d30f22046dfddc79e1e169ed7d90bf3b920335.tar.lz
re3-69d30f22046dfddc79e1e169ed7d90bf3b920335.tar.xz
re3-69d30f22046dfddc79e1e169ed7d90bf3b920335.tar.zst
re3-69d30f22046dfddc79e1e169ed7d90bf3b920335.zip
Diffstat (limited to 'src/core/Streaming.h')
-rw-r--r--src/core/Streaming.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/Streaming.h b/src/core/Streaming.h
index a67384f6..6e354021 100644
--- a/src/core/Streaming.h
+++ b/src/core/Streaming.h
@@ -123,6 +123,7 @@ public:
static bool HasColLoaded(int32 id) { return HasModelLoaded(id+STREAM_OFFSET_COL); }
static bool HasAnimLoaded(int32 id) { return HasModelLoaded(id+STREAM_OFFSET_ANIM); }
static bool CanRemoveModel(int32 id) { return (ms_aInfoForModel[id].m_flags & STREAMFLAGS_CANT_REMOVE) == 0; }
+ static bool IsScriptOwnedModel(int32 id) { return (ms_aInfoForModel[id].m_flags & STREAMFLAGS_SCRIPTOWNED) == 0; }
static bool CanRemoveTxd(int32 id) { return CanRemoveModel(id+STREAM_OFFSET_TXD); }
static bool CanRemoveCol(int32 id) { return CanRemoveModel(id+STREAM_OFFSET_COL); }
static bool CanRemoveAnim(int32 id) { return CanRemoveModel(id+STREAM_OFFSET_ANIM); }