use BT_ID_MAX as std::max is not portable (older Visual Studio versions break)

This commit is contained in:
erwincoumans
2015-11-24 17:34:43 -08:00
parent ff74884f9f
commit 0e247264ff
2 changed files with 9 additions and 1 deletions

View File

@@ -79,7 +79,7 @@ int DillCreator::recurseDill(const int level, const int parent, const idScalar d
return -1;
}
idScalar size = std::max(level, 1);
idScalar size = BT_ID_MAX(level, 1);
const int body = m_current_body;
// length = 0.1 * size;
// with = 2 * 0.01 * size;