Commit 477248c
committed
Fix vehicle corona/shadow flicker on fogless to foggy weather blend (#4803)
ResyncInterpolationWithGameClock snapped CWeather::InterpolationValue
to minute/60, dropping the seconds component. CTimeCycle::CalcColoursForPoint
then blended m_CurrentColours per game-minute instead of per frame, so
m_fSpriteBrightness (vehicle coronas) and m_wShadowStrength (vehicle
shadows) ticked visibly when the game clock runs fast.
Match the value CWeather::Update derives at 0x72B897
(seconds/3600 + minutes/60) so the wrap-suppression still holds and
m_CurrentColours interpolates smoothly each frame.1 parent bb7e811 commit 477248c
2 files changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | | - | |
| 45 | + | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
0 commit comments