mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
replace all std::min/std::max with just min/max
This errors out in MSVC since the inclusion of winsock2.h, CL uses the macro not the template version.
This commit is contained in:
@@ -664,7 +664,7 @@ bool Game::dashWalk(Otc::Direction direction)
|
||||
m_localPlayer->stopAutoWalk();
|
||||
}
|
||||
|
||||
if(m_localPlayer->isWalking() && m_dashTimer.ticksElapsed() < std::max<int>(m_localPlayer->getStepDuration(false, direction) - m_ping, 30))
|
||||
if(m_localPlayer->isWalking() && m_dashTimer.ticksElapsed() < max<int>(m_localPlayer->getStepDuration(false, direction) - m_ping, 30))
|
||||
return false;
|
||||
|
||||
Position toPos = m_localPlayer->getPosition().translatedToDirection(direction);
|
||||
|
Reference in New Issue
Block a user