mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
Sweet's Girl fix
This commit is contained in:
parent
7fc873fb71
commit
7e7aaa5db9
1 changed files with 15 additions and 0 deletions
|
@ -550,6 +550,18 @@ static void InitializeScriptGlobals()
|
|||
}
|
||||
}
|
||||
|
||||
static void SweetsGirlFix()
|
||||
{
|
||||
InitializeScriptGlobals();
|
||||
|
||||
// Changes @ == int to @ >= int in two places
|
||||
if ( *(uint16_t*)(ScriptSpace+ScriptFileSize+2510) == 0x0039 )
|
||||
*(uint16_t*)(ScriptSpace+ScriptFileSize+2510) = 0x0029;
|
||||
|
||||
if ( *(uint16_t*)(ScriptSpace+ScriptFileSize+2680) == 0x0039 )
|
||||
*(uint16_t*)(ScriptSpace+ScriptFileSize+2680) = 0x0029;
|
||||
}
|
||||
|
||||
static void MountainCloudBoysFix()
|
||||
{
|
||||
static const BYTE bOldCode[22] = {
|
||||
|
@ -586,6 +598,9 @@ void StartNewMission_SCMFixes()
|
|||
// INITIAL - Basketball fix
|
||||
if ( ScriptParams[0] == 0 )
|
||||
BasketballFix(ScriptSpace+ScriptFileSize, ScriptMissionSize);
|
||||
// HOODS5 - Sweet's Girl fix
|
||||
else if ( ScriptParams[0] == 18 )
|
||||
SweetsGirlFix();
|
||||
// WUZI1 - Mountain Cloud Boys fix
|
||||
else if ( ScriptParams[0] == 53 )
|
||||
MountainCloudBoysFix();
|
||||
|
|
Loading…
Reference in a new issue