Fix maps component using integer values for setting bool dvars
This commit is contained in:
parent
8ca84eb882
commit
da669cccc0
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user