mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Use std::min and std::max
This commit is contained in:
@ -234,7 +234,7 @@ void plNetClientMgr::IShowRelevanceRegions()
|
||||
uint32_t maxPlayerName = 0;
|
||||
|
||||
txt.DrawString(x, y, GetPlayerName().c_str());
|
||||
maxPlayerName = hsMaximum(maxPlayerName, txt.CalcStringWidth(GetPlayerName().c_str()));
|
||||
maxPlayerName = std::max(maxPlayerName, txt.CalcStringWidth(GetPlayerName().c_str()));
|
||||
y += yOff;
|
||||
|
||||
int i;
|
||||
@ -247,7 +247,7 @@ void plNetClientMgr::IShowRelevanceRegions()
|
||||
|
||||
const plString& name = mbr->GetPlayerName();
|
||||
txt.DrawString(x, y, name.c_str());
|
||||
maxPlayerName = hsMaximum(maxPlayerName, txt.CalcStringWidth(name.c_str()));
|
||||
maxPlayerName = std::max(maxPlayerName, txt.CalcStringWidth(name.c_str()));
|
||||
y += yOff;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user