SilentPatch/SilentPatchSA/ScriptSA.cpp

22 lines
534 B
C++
Raw Permalink Normal View History

2014-08-03 19:38:53 +06:00
#include "StdAfxSA.h"
#include "ScriptSA.h"
2014-08-22 04:10:23 +06:00
static int* StatTypesInt = *AddressByVersion<int**>(0x55C0D8, 0x55C578, 0x574F24);
2017-04-13 00:33:23 +05:00
std::pair<uint32_t,uint32_t>* CRunningScript::GetDay_GymGlitch()
{
2017-04-13 00:33:23 +05:00
static std::pair<uint32_t,uint32_t> 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;
}