forked from mirrors/0ad
Fix missing [] to undefined replacement in b4503bb61e that was never noticeable because Terrain.place overwrites it on every tile of every map.
Fix wrong variable name in 45bb3d2a43.
This was SVN commit r20335.
This commit is contained in:
@@ -290,9 +290,9 @@ function placeTerrain(x, z, terrain)
|
||||
g_Map.placeTerrain(x, z, createTerrain(terrain));
|
||||
}
|
||||
|
||||
function initTerrain(tileClass)
|
||||
function initTerrain(terrain)
|
||||
{
|
||||
g_Map.initTerrain(createTerrain(tileClass));
|
||||
g_Map.initTerrain(createTerrain(terrain));
|
||||
}
|
||||
|
||||
function isCircularMap()
|
||||
|
||||
@@ -24,7 +24,7 @@ function Map(size, baseHeight)
|
||||
this.area[i] = new Uint16Array(size);
|
||||
|
||||
for (let j = 0; j < size; ++j)
|
||||
this.terrainObjects[i][j] = [];
|
||||
this.terrainObjects[i][j] = undefined;
|
||||
}
|
||||
|
||||
// Create 2D array for heightmap
|
||||
|
||||
Reference in New Issue
Block a user