SilentPatch/SAFix/ScriptSA.cpp
2014-08-21 00:55:19 +02:00

22 lines
No EOL
507 B
C++

#include "StdAfxSA.h"
#include "ScriptSA.h"
static int* StatTypesInt = *AddressByVersion<int**>(0x55C0D8, 0, 0x574F24);
std::pair<int,int>* CRunningScript::GetDay_GymGlitch()
{
static std::pair<int,int> Out;
if ( !strncmp(Name, "gymbike", 8) || !strncmp(Name, "gymbenc", 8) || !strncmp(Name, "gymtrea", 8) || !strncmp(Name, "gymdumb", 8) )
{
Out.first = 0xFFFFFFFF;
Out.second = StatTypesInt[134-120];
}
else
{
Out.first = nGameClockMonths;
Out.second = nGameClockDays;
}
return &Out;
}