mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 19:29:09 +00:00
Use std::min and std::max
This commit is contained in:
@ -271,7 +271,7 @@ float plAnimPath::GetExtremePoint(hsPoint3 &worldPt) const
|
||||
{
|
||||
float fore = keyTimes[i + 1] - t;
|
||||
float back = t - keyTimes[i - 1];
|
||||
delTime = hsMaximum(fore, back);
|
||||
delTime = std::max(fore, back);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -816,7 +816,7 @@ float plCompoundController::GetLength() const
|
||||
for(i=0; i<3; i++)
|
||||
{
|
||||
if (GetController(i))
|
||||
len = hsMaximum(len, GetController(i)->GetLength());
|
||||
len = std::max(len, GetController(i)->GetLength());
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
Reference in New Issue
Block a user