Merge pull request #940 from nullworks/TotallyNotElite-patch-1-1

Fix no visual compile
This commit is contained in:
LightCat 2020-04-02 01:41:50 +02:00 committed by GitHub
commit b6411710c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,6 +132,7 @@ void updateData()
std::optional<std::string> username = std::nullopt;
std::optional<int> newcolour = std::nullopt;
username = *anon ? "anon" : g_ISteamFriends->GetPersonaName();
#if ENABLE_VISUALS
if ((*colour).r || (*colour).g || (*colour).b)
{
int r = (*colour).r * 255;
@ -139,6 +140,7 @@ void updateData()
int b = (*colour).b * 255;
newcolour = (r << 16) + (g << 8) + b;
}
#endif
NullNexus::UserSettings settings;
settings.username = *username;
settings.colour = newcolour;