Skip to content

Commit

Permalink
fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
MSoft1115 committed Jul 13, 2023
1 parent a519a7d commit 6c4bcc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos/terrain/terrain-asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ export class TerrainAsset extends Asset {
if (this._version < TERRAIN_DATA_VERSION8) {
for (let i = 0; i < this.heights.length; ++i) {
const h = (this._heights[i] - TERRAIN_HEIGHT_BASE) * TERRAIN_HEIGHT_FACTORY_V7;
const ch = TERRAIN_HEIGHT_BASE + h / TERRAIN_HEIGHT_FACTORY
const ch = TERRAIN_HEIGHT_BASE + h / TERRAIN_HEIGHT_FACTORY;
this.heights[i] = ch;
}
}
Expand Down

0 comments on commit 6c4bcc9

Please sign in to comment.