Fixed credits not working

This commit is contained in:
Sergeanur 2019-10-27 16:05:47 +02:00
parent 80b85a417c
commit 6d61f678e2
2 changed files with 6 additions and 1 deletions

View File

@ -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);

View File

@ -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);