VC: Reset CWeather::StreamAfterRainTimer when restarting

Fixes saves/new game having the "after rain stream" if you load
a save after playing in rain
This commit is contained in:
Silent 2024-10-19 14:33:18 +02:00
parent 1b3a2dd1fc
commit 8e258b0ac5
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1

View File

@ -2628,6 +2628,7 @@ void Patch_VC_Common()
GameVariablesToReset.emplace_back(*get_pattern<bool*>("7D 09 80 3D ? ? ? ? ? 74 32", 2 + 2)); // Free resprays
GameVariablesToReset.emplace_back(*get_pattern<int*>("7D 78 A1 ? ? ? ? 05", 2 + 1)); // LastTimeAmbulanceCreated
GameVariablesToReset.emplace_back(*get_pattern<int*>("A1 ? ? ? ? 05 ? ? ? ? 39 05 ? ? ? ? 0F 86 ? ? ? ? 8B 15", 1)); // LastTimeFireTruckCreated
GameVariablesToReset.emplace_back(*get_pattern<int*>("FF 0D ? ? ? ? EB 15 90", 2)); // CWeather::StreamAfterRainTimer
}
TXN_CATCH();