summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/BaseModelInfo.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-11 18:53:15 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-11 18:53:15 +0100
commita223157000fac3ba63699f04bc9e466f53a412e3 (patch)
tree54e1e672a564ffdb5d65e0748a86fae60f3eb895 /src/modelinfo/BaseModelInfo.cpp
parentof course (diff)
downloadre3-a223157000fac3ba63699f04bc9e466f53a412e3.tar
re3-a223157000fac3ba63699f04bc9e466f53a412e3.tar.gz
re3-a223157000fac3ba63699f04bc9e466f53a412e3.tar.bz2
re3-a223157000fac3ba63699f04bc9e466f53a412e3.tar.lz
re3-a223157000fac3ba63699f04bc9e466f53a412e3.tar.xz
re3-a223157000fac3ba63699f04bc9e466f53a412e3.tar.zst
re3-a223157000fac3ba63699f04bc9e466f53a412e3.zip
Diffstat (limited to 'src/modelinfo/BaseModelInfo.cpp')
-rw-r--r--src/modelinfo/BaseModelInfo.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modelinfo/BaseModelInfo.cpp b/src/modelinfo/BaseModelInfo.cpp
index f05be242..d92e4941 100644
--- a/src/modelinfo/BaseModelInfo.cpp
+++ b/src/modelinfo/BaseModelInfo.cpp
@@ -1,10 +1,12 @@
#include "common.h"
#include "templates.h"
+#include "main.h"
#include "TxdStore.h"
#include "2dEffect.h"
#include "BaseModelInfo.h"
#include "ModelInfo.h"
+#include "KeyGen.h"
//--MIAMI: file done
@@ -18,6 +20,7 @@ CBaseModelInfo::CBaseModelInfo(ModelInfoType type)
m_type = type;
m_num2dEffects = 0;
m_bOwnsColModel = false;
+ m_name = new char[MAX_MODEL_NAME];
}
void
@@ -101,3 +104,12 @@ CBaseModelInfo::Get2dEffect(int n)
else
return nil;
}
+
+
+void
+CBaseModelInfo::SetModelName(const char *name)
+{
+ m_nameKey = CKeyGen::GetUppercaseKey(name);
+ if (!gUseChunkFiles)
+ strcpy(m_name, name);
+} \ No newline at end of file