From 6d61f678e22d46af166a0b81eb4a405ff8e076df Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Sun, 27 Oct 2019 16:05:47 +0200 Subject: Fixed credits not working --- src/render/Credits.cpp | 5 +++++ src/render/Credits.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/render/Credits.cpp b/src/render/Credits.cpp index 6d20c1ff..8f4e2270 100644 --- a/src/render/Credits.cpp +++ b/src/render/Credits.cpp @@ -493,6 +493,11 @@ CCredits::Render(void) bCreditsGoing = false; } +bool CCredits::AreCreditsDone(void) +{ + return !bCreditsGoing; +} + STARTPATCHES InjectHook(0x4FE7A0, CCredits::Init, PATCH_JUMP); InjectHook(0x4FE760, CCredits::Start, PATCH_JUMP); diff --git a/src/render/Credits.h b/src/render/Credits.h index cbe63172..c39fb035 100644 --- a/src/render/Credits.h +++ b/src/render/Credits.h @@ -8,7 +8,7 @@ public: static void Init(void); static void Start(void); static void Stop(void); - static bool AreCreditsDone(void) { return bCreditsGoing; } + static bool AreCreditsDone(void); static void Render(void); static void PrintCreditSpace(float space, uint32 &line); static void PrintCreditText(float scaleX, float scaleY, wchar *text, uint32 &lineoffset, float scrolloffset); -- cgit v1.2.3