diff options
author | aap <aap@papnet.eu> | 2019-07-28 12:42:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-28 12:42:51 +0200 |
commit | 15db3c91d28372329e3b49db12ba6028941bd74e (patch) | |
tree | 96afd5a9b47ed1dfaabfabda3438ea6e50de1d17 /src/control/Script.h | |
parent | fixed intro skip (diff) | |
parent | fix debug message (diff) | |
download | re3-15db3c91d28372329e3b49db12ba6028941bd74e.tar re3-15db3c91d28372329e3b49db12ba6028941bd74e.tar.gz re3-15db3c91d28372329e3b49db12ba6028941bd74e.tar.bz2 re3-15db3c91d28372329e3b49db12ba6028941bd74e.tar.lz re3-15db3c91d28372329e3b49db12ba6028941bd74e.tar.xz re3-15db3c91d28372329e3b49db12ba6028941bd74e.tar.zst re3-15db3c91d28372329e3b49db12ba6028941bd74e.zip |
Diffstat (limited to 'src/control/Script.h')
-rw-r--r-- | src/control/Script.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/control/Script.h b/src/control/Script.h index 0984952a..47c70914 100644 --- a/src/control/Script.h +++ b/src/control/Script.h @@ -1,5 +1,6 @@ #pragma once #include "common.h" +#include "Text.h" #include "Sprite2d.h" class CEntity; @@ -373,6 +374,11 @@ public: return Read2BytesFromScript(pIp) / 16.0f; } static void ReadTextLabelFromScript(uint32* pIp, char* buf){ - strncpy(buf, (const char*)&CTheScripts::ScriptSpace[*pIp], 8); + strncpy(buf, (const char*)&ScriptSpace[*pIp], 8); + } + static wchar* GetTextByKeyFromScript(uint32* pIp) { + wchar* text = TheText.Get((const char*)&ScriptSpace[*pIp]); + *pIp += 8; + return text; } }; |