Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implemented Ice Cap score multiplier scaling because apparently it ne…
…eds its own entirely separate function from Sand Hills EVEN THOUGH THEY'RE IDENTICAL :V
  • Loading branch information
michael-fadely committed Feb 20, 2016
1 parent f71dd48 commit 5979448
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SADXModLoader/HudScale.cpp
Expand Up @@ -39,6 +39,7 @@ static Trampoline* scaleEmeraldRadarA;
static Trampoline* scaleEmeraldRadar_Grab;
static Trampoline* scaleEmeraldRadarB;
static Trampoline* scaleSandHillMultiplier;
static Trampoline* scaleIceCapMultiplier;
static Trampoline* scaleGammaTimeAddHud;
static Trampoline* scaleEmblemScreen;
static Trampoline* scaleBossName;
Expand Down Expand Up @@ -242,6 +243,10 @@ static void __cdecl ScaleSandHillMultiplier(ObjectMaster* a1)
{
ScaleObjFunc(Align::Auto, a1, scaleSandHillMultiplier);
}
static void __cdecl ScaleIceCapMultiplier(ObjectMaster* a1)
{
ScaleObjFunc(Align::Auto, a1, scaleIceCapMultiplier);
}

static void __cdecl ScaleGammaTimeAddHud(ObjectMaster* a1)
{
Expand Down Expand Up @@ -412,6 +417,7 @@ void SetupHudScale()
scaleEmeraldRadar_Grab = new Trampoline(0x00475D50, 0x00475D55, (DetourFunction)ScaleEmeraldRadar_Grab);

scaleSandHillMultiplier = new Trampoline(0x005991A0, 0x005991A6, (DetourFunction)ScaleSandHillMultiplier);
scaleIceCapMultiplier = new Trampoline(0x004EC120, 0x004EC125, (DetourFunction)ScaleIceCapMultiplier);

WriteData((const float**)0x0049FF70, &patch_dummy);
WriteData((const float**)0x004A005B, &patch_dummy);
Expand Down

0 comments on commit 5979448

Please sign in to comment.