Fix maps component using integer values for setting bool dvars

This commit is contained in:
Jan 2021-09-10 12:40:53 +02:00
parent 8ca84eb882
commit da669cccc0

View File

@ -560,7 +560,7 @@ namespace Components
}
hasDlc.push_back(hasAllMaps);
Dvar::Var(Utils::String::VA("isDlcInstalled_%d", pack.index)).set(hasAllMaps ? 1 : 0);
Dvar::Var(Utils::String::VA("isDlcInstalled_%d", pack.index)).set(hasAllMaps ? true : false);
}
// Must have all of dlc 3 to 5 or it causes issues
@ -571,7 +571,7 @@ namespace Components
sentMessage = true;
}
Dvar::Var("isDlcInstalled_All").set(hasAllDlcs ? 1 : 0);
Dvar::Var("isDlcInstalled_All").set(hasAllDlcs ? true : false);
}
bool Maps::IsCustomMap()