mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-12 21:10:34 +00:00
Some regular fixes and UB fixes
This commit is contained in:
parent
3dfffdf351
commit
d52b917c54
5 changed files with 19 additions and 6 deletions
|
@ -1545,7 +1545,7 @@ CPed::ProcessBuoyancy(void)
|
|||
CRGBA color(((0.5f * CTimeCycle::GetDirectionalRed() + CTimeCycle::GetAmbientRed()) * 127.5f),
|
||||
((0.5f * CTimeCycle::GetDirectionalBlue() + CTimeCycle::GetAmbientBlue()) * 127.5f),
|
||||
((0.5f * CTimeCycle::GetDirectionalGreen() + CTimeCycle::GetAmbientGreen()) * 127.5f),
|
||||
(CGeneral::GetRandomNumber() % 256 * 48.0f) + 48);
|
||||
CGeneral::GetRandomNumberInRange(48.0f, 96.0f));
|
||||
|
||||
if (bInVehicle)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue