mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-23 08:34:50 +00:00
fix: unglob std::{min, max}, manual stuff
This commit is contained in:
@@ -112,11 +112,11 @@ LevelData::LevelData(CompoundTag *tag)
|
||||
m_xzSize = tag->getInt(L"XZSize");
|
||||
m_hellScale = tag->getInt(L"HellScale");
|
||||
|
||||
m_xzSize = min(m_xzSize,LEVEL_MAX_WIDTH);
|
||||
m_xzSize = max(m_xzSize,LEVEL_MIN_WIDTH);
|
||||
m_xzSize = std::min(m_xzSize,LEVEL_MAX_WIDTH);
|
||||
m_xzSize = std::max(m_xzSize,LEVEL_MIN_WIDTH);
|
||||
|
||||
m_hellScale = min(m_hellScale,HELL_LEVEL_MAX_SCALE);
|
||||
m_hellScale = max(m_hellScale,HELL_LEVEL_MIN_SCALE);
|
||||
m_hellScale = std::min(m_hellScale,HELL_LEVEL_MAX_SCALE);
|
||||
m_hellScale = std::max(m_hellScale,HELL_LEVEL_MIN_SCALE);
|
||||
|
||||
int hellXZSize = m_xzSize / m_hellScale;
|
||||
while(hellXZSize > HELL_LEVEL_MAX_WIDTH && m_hellScale < HELL_LEVEL_MAX_SCALE)
|
||||
@@ -180,11 +180,11 @@ LevelData::LevelData(LevelSettings *levelSettings, const std::wstring& levelName
|
||||
m_xzSize = levelSettings->getXZSize();
|
||||
m_hellScale = levelSettings->getHellScale();
|
||||
|
||||
m_xzSize = min(m_xzSize,LEVEL_MAX_WIDTH);
|
||||
m_xzSize = max(m_xzSize,LEVEL_MIN_WIDTH);
|
||||
m_xzSize = std::min(m_xzSize,LEVEL_MAX_WIDTH);
|
||||
m_xzSize = std::max(m_xzSize,LEVEL_MIN_WIDTH);
|
||||
|
||||
m_hellScale = min(m_hellScale,HELL_LEVEL_MAX_SCALE);
|
||||
m_hellScale = max(m_hellScale,HELL_LEVEL_MIN_SCALE);
|
||||
m_hellScale = std::min(m_hellScale,HELL_LEVEL_MAX_SCALE);
|
||||
m_hellScale = std::max(m_hellScale,HELL_LEVEL_MIN_SCALE);
|
||||
|
||||
int hellXZSize = m_xzSize / m_hellScale;
|
||||
while(hellXZSize > HELL_LEVEL_MAX_WIDTH && m_hellScale < HELL_LEVEL_MAX_SCALE)
|
||||
|
||||
Reference in New Issue
Block a user