Commit c12ffaf
authored
Hopefully fix fog light flicker precision (#4906)
#### Summary
Adjust weather interpolation resync precision in
`CWeatherSA::ResyncInterpolationWithGameClock`.
This keeps `InterpolationValue` aligned with the engine comparison path
and removes fog transition light flicker.
#### Motivation
Fog to sunny flicker was fixed, but lights still flickered when blending
into fog.
This change prevents precision mismatches that can trigger the wrap
branch and spike light related weather values.
#### Test plan
Test in-game on v26595 with fast clock and repeated `setWeatherBlended`
into fog.
Verify car lights, traffic lights, and other 2dfx lights no longer flash
each second during the blend.1 parent 3d7128a commit c12ffaf
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
0 commit comments