fixing the check

This commit is contained in:
Detanup01 2024-09-25 15:18:25 +02:00 committed by GitHub
parent 2176a57ae6
commit 623ba9025b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,7 +128,7 @@ Steam_User_Stats::InternalSetResult<int32> Steam_User_Stats::set_stat_internal(
} catch(...){}
}
if (indicate_progress && (stats_data->second + settings->stat_int_min_diff_progress) >= nData) {
if (indicate_progress && (stats_data->second.default_value_int + settings->stat_int_min_diff_progress) >= nData) {
IndicateAchievementProgress(t.name.c_str(), nData, std::stoi(t.max_value));
}
}
@ -202,7 +202,7 @@ Steam_User_Stats::InternalSetResult<std::pair<GameServerStats_Messages::StatInfo
} catch(...){}
}
if (indicate_progress && (stats_data->second + settings->start_float_min_diff_progress) >= fData) {
if (indicate_progress && (stats_data->second.default_value_float + settings->stat_float_min_diff_progress) >= fData) {
IndicateAchievementProgress(t.name.c_str(), (uint32)fData, (uint32)std::stof(t.max_value));
}
}