[saco] Implement/match CGame::EnableClock(...)

This commit is contained in:
RD42 2024-11-06 00:11:24 +08:00
parent 6dbcdc827e
commit 43f186edd1
2 changed files with 19 additions and 0 deletions

View File

@ -1044,6 +1044,24 @@ void CGame::DrawGangZone(float fPos[], DWORD dwColor)
//-----------------------------------------------------------
void CGame::EnableClock(BYTE byteClock)
{
BYTE byteClockData[] = {'%', '0', '2', 'd', ':', '%', '0', '2', 'd', 0};
UnFuck(0x859A6C,10);
if (byteClock)
{
ToggleThePassingOfTime(1);
memcpy((PVOID)0x859A6C, byteClockData, 10);
}
else
{
ToggleThePassingOfTime(0);
memset((PVOID)0x859A6C,0,10);
}
}
//-----------------------------------------------------------
void CGame::EnableZoneNames(BYTE byteEnable)
{
ScriptCommand(&enable_zone_names, byteEnable);

View File

@ -71,6 +71,7 @@ public:
void ToggleRadar(int iToggle);
void DisplayGameText(char *szStr,int iTime,int iSize);
void SetGravity(float fGravity);
void EnableClock(BYTE byteClock);
void EnableZoneNames(BYTE byteEnable);
void SetWantedLevel(BYTE byteLevel);
void SetGameTextCount(WORD wCount);