Merge pull request #940 from nullworks/TotallyNotElite-patch-1-1
Fix no visual compile
This commit is contained in:
commit
b6411710c3
@ -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;
|
||||
|
Reference in New Issue
Block a user