mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-07-04 13:15:53 +00:00
Improve CPlayerState::Get/SetScanTime
Former-commit-id: 8c3bb41887fc058a05d487c7cbe53d4bccbbf0d5
This commit is contained in:
parent
d2c055d270
commit
315335a893
@ -372,17 +372,11 @@ void CPlayerState::InitializeScanTimes() {
|
||||
|
||||
float CPlayerState::GetScanTime(CAssetId res) const {
|
||||
rstl::vector< rstl::pair< CAssetId, float > >::const_iterator it = rstl::find_by_key(x170_scanTimes, res);
|
||||
|
||||
if (it != x170_scanTimes.end())
|
||||
return 0.f;
|
||||
|
||||
return it->second;
|
||||
}
|
||||
|
||||
void CPlayerState::SetScanTime(CAssetId res, float time) {
|
||||
rstl::vector< rstl::pair< CAssetId, float > >::iterator it = rstl::find_by_key_nc(x170_scanTimes, res);
|
||||
|
||||
if (it != x170_scanTimes.end())
|
||||
it->second = time;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user