mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Use std::min and std::max
This commit is contained in:
@ -158,7 +158,7 @@ protected:
|
||||
uint32_t fAvgCount;
|
||||
uint64_t fAvgTotal;
|
||||
uint32_t fLastAvg;
|
||||
uint32_t fMax;
|
||||
uint64_t fMax;
|
||||
bool fActive;
|
||||
bool fRunning;
|
||||
uint8_t fDisplayFlags;
|
||||
|
@ -161,7 +161,7 @@ void plProfileBase::EndFrame()
|
||||
{
|
||||
fAvgCount++;
|
||||
fAvgTotal += fValue;
|
||||
fMax = hsMaximum(fMax, fValue);
|
||||
fMax = std::max(fMax, fValue);
|
||||
}
|
||||
|
||||
void plProfileBase::UpdateAvg()
|
||||
|
Reference in New Issue
Block a user