1
0

Remove sign conversion

This commit is contained in:
peterbell10
2017-06-14 16:35:34 +01:00
committed by Lukas Pioch
parent 885d80ccdb
commit f4de38af80
3 changed files with 8 additions and 7 deletions

View File

@@ -514,7 +514,7 @@ void cChunk::GetThreeRandomNumbers(int & a_X, int & a_Y, int & a_Z, int a_MaxX,
);
// MTRand gives an inclusive range [0, Max] but this gives the exclusive range [0, Max)
int OverallMax = (a_MaxX - 1) * (a_MaxY - 1) * (a_MaxZ - 1);
int OverallMax = (a_MaxX * a_MaxY * a_MaxZ) - 1;
int Random = m_World->GetTickRandomNumber(OverallMax);
a_X = Random % a_MaxX;