bugfix
This commit is contained in:
parent
33258c7820
commit
7e77b43104
1 changed files with 2 additions and 2 deletions
|
|
@ -53,9 +53,9 @@ public class TerrainManager {
|
|||
*/
|
||||
protected void setTerrainCenter(Vector3f newCenter) {
|
||||
Vector3f newTerrainZero = new Vector3f(
|
||||
(int) newCenter.getX()/(squareWidth*heightMap.getSquareCountWidth()),
|
||||
(squareWidth * heightMap.getSquareCountWidth()) * (int)(newCenter.getX()/(squareWidth * heightMap.getSquareCountWidth())),
|
||||
0,
|
||||
(int) newCenter.getZ()/(squareHeight*heightMap.getSquareCountHeight()));
|
||||
(squareHeight * heightMap.getSquareCountHeight()) * (int)(newCenter.getZ()/(squareHeight * heightMap.getSquareCountHeight())));
|
||||
|
||||
if (newTerrainZero.equals(terrainZero))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue