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:
@ -951,7 +951,7 @@ void plSpotLightInfo::IRefresh()
|
||||
float yon = GetRadius();
|
||||
if( yon < kMinHither )
|
||||
yon = kMaxYon;
|
||||
float hither = hsMinimum(kMinHither, yon * 0.5f);
|
||||
float hither = std::min(kMinHither, yon * 0.5f);
|
||||
|
||||
float sinFOV, cosFOV;
|
||||
hsFastMath::SinCos(effFOV, sinFOV, cosFOV);
|
||||
|
@ -373,7 +373,7 @@ plShadowSlave* plShadowMaster::ILastChanceToBail(plShadowCastMsg* castMsg, plSha
|
||||
|
||||
float maxDist = fMaxDist > 0
|
||||
? (fGlobalMaxDist > 0
|
||||
? hsMinimum(fMaxDist, fGlobalMaxDist)
|
||||
? std::min(fMaxDist, fGlobalMaxDist)
|
||||
: fMaxDist)
|
||||
: fGlobalMaxDist;
|
||||
|
||||
|
Reference in New Issue
Block a user