Fixes to matchmaking and friends.

This commit is contained in:
Mr_Goldberg 2020-08-03 12:56:33 -04:00
parent e100c89160
commit ba25559920
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
2 changed files with 10 additions and 9 deletions

View file

@ -1187,7 +1187,11 @@ void RunCallbacks()
} else {
try {
PRINT_DEBUG("%s\n", value->second.c_str());
int compare_to = std::stoll(value->second, 0, 0);
int compare_to = 0;
//TODO: check if this is how real steam behaves
if (value->second.size()) {
compare_to = std::stoll(value->second, 0, 0);
}
PRINT_DEBUG("Compare Values %i %i\n", compare_to, f.value_int);
if (f.eComparisonType == k_ELobbyComparisonEqual) {
if (compare_to == f.value_int) {