Typo fix
This commit is contained in:
parent
374020f94d
commit
638ce5370f
1 changed files with 1 additions and 1 deletions
|
@ -2609,7 +2609,7 @@ bool Project::calculateDefaultMapSize(){
|
||||||
default_map_size = 20;
|
default_map_size = 20;
|
||||||
} else if (max >= getMapDataSize(1, 1)) {
|
} else if (max >= getMapDataSize(1, 1)) {
|
||||||
// Below equation derived from max >= (x + 15) * (x + 14)
|
// Below equation derived from max >= (x + 15) * (x + 14)
|
||||||
// x^2 + 29x + (10 - max), then complete the square and simplify
|
// x^2 + 29x + (210 - max), then complete the square and simplify
|
||||||
default_map_size = qFloor((qSqrt(4 * getMaxMapDataSize() + 1) - 29) / 2);
|
default_map_size = qFloor((qSqrt(4 * getMaxMapDataSize() + 1) - 29) / 2);
|
||||||
} else {
|
} else {
|
||||||
logError(QString("'MAX_MAP_DATA_SIZE' of %1 is too small to support a 1x1 map. Must be at least %2.")
|
logError(QString("'MAX_MAP_DATA_SIZE' of %1 is too small to support a 1x1 map. Must be at least %2.")
|
||||||
|
|
Loading…
Reference in a new issue