Skip to content

Commit 50342bd

Browse files
committed
fix: compatibility with wasp-data new heightmap
1 parent a585c8e commit 50342bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osrs/position/map/maploader.simba

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ begin
290290

291291
case map of
292292
ERSMap.NORMAL: cachename := Self.CacheDir + 'map' + PATH_SEP + ToStr(plane) + PATH_SEP + filename;
293-
ERSMap.HEIGHT: cachename := Self.CacheDir + 'heightmap' + PATH_SEP + filename;
293+
ERSMap.HEIGHT: cachename := Self.CacheDir + 'heightmap' + PATH_SEP + ToStr(plane) + PATH_SEP + filename;
294294
ERSMap.COLLISION: cachename := Self.CacheDir + 'collision' + PATH_SEP + ToStr(plane) + PATH_SEP + filename;
295295
end;
296296

@@ -530,7 +530,7 @@ begin
530530
maps.Last.Pad(padding);
531531

532532
//heightmap are shared accross planes
533-
heightmaps += Self.GetMap(region.Chunks, 0, ERSMap.HEIGHT);
533+
heightmaps += Self.GetMap(region.Chunks, plane, ERSMap.HEIGHT);
534534
heightmaps.Last.Pad(padding);
535535

536536
collisionmaps += Self.GetMap(region.Chunks, plane, ERSMap.COLLISION);

0 commit comments

Comments
 (0)