Swap all cosmetics CVars to macros. (#4065)

Lots of renames.

Co-authored-by: Garrett Cox <garrettjcox@gmail.com>
This commit is contained in:
Malkierian 2024-04-25 19:41:55 -07:00 committed by GitHub
commit 303fe7d906
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 1271 additions and 1270 deletions

View file

@ -1516,7 +1516,7 @@ static std::set<std::string> rainbowCVars = {
int hue = 0;
void RainbowTick() {
float freqHue = hue * 2 * M_PI / (360 * CVarGetFloat("gCosmetics.RainbowSpeed", 0.6f));
float freqHue = hue * 2 * M_PI / (360 * CVarGetFloat(CVAR_COSMETIC("RainbowSpeed"), 0.6f));
for (auto& cvar : rainbowCVars) {
if (CVarGetInteger((cvar + "RBM").c_str(), 0) == 0) {
continue;