mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 11:15:34 +08:00
fixing the check
This commit is contained in:
parent
2176a57ae6
commit
623ba9025b
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user