Fix uninitialized shadow tint regression from #14610 (#15197)

* Fix uninitialized shadow tint

This resulted in shadows having a different, random color each time I started a game

* Fix formatting mistakes from the same PR
This commit is contained in:
grorp 2024-09-27 11:08:35 +02:00 committed by GitHub
parent 65ec371b78
commit fbb0e82679
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

@ -56,5 +56,5 @@ struct Lighting
float shadow_intensity {0.0f};
float saturation {1.0f};
float volumetric_light_strength {0.0f};
video::SColor shadow_tint;
video::SColor shadow_tint {255, 0, 0, 0};
};

@ -241,7 +241,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
*/
#define LATEST_PROTOCOL_VERSION 46
#define LATEST_PROTOCOL_VERSION_STRING TOSTRING(LATEST_PROTOCOL_VERSION)
// Server's supported network protocol range