Skip to content

Commit

Permalink
iv: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Jul 17, 2024
1 parent 094dd24 commit b4a1e76
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion source/GTAIV.XboxRainDroplets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,21 @@ void __fastcall sub_B870A0(uint8_t* self, void* edx)
}
if (self[12])
{
WaterDrops::ms_rainIntensity = *CWeatherRain; //rain_drops
bool bNeedsToDisableDrops = false;
static auto ff = GetModuleHandleW(L"GTAIV.EFLC.FusionFix.asi");
if (ff)
{
static auto IsSnowEnabled = (bool(*)())GetProcAddress(ff, "IsSnowEnabled");
static auto IsWeatherSnow = (bool(*)())GetProcAddress(ff, "IsWeatherSnow");
if (IsSnowEnabled && IsWeatherSnow)
{
if (IsSnowEnabled() && IsWeatherSnow())
bNeedsToDisableDrops = true;
}
}

if (!bNeedsToDisableDrops)
WaterDrops::ms_rainIntensity = *CWeatherRain; //rain_drops
self[12] = 0;
}
if (self[28])
Expand Down

0 comments on commit b4a1e76

Please sign in to comment.