2
0
mirror of https://github.com/dpethes/rerogue.git synced 2025-06-07 18:58:32 +02:00

terrain viewer: tile texture index remapping

This commit is contained in:
dpethes 2015-07-06 18:42:36 +02:00
parent 89f88b0918
commit 8f9fb78d19
2 changed files with 6 additions and 1 deletions

View File

@ -228,9 +228,14 @@ begin
end;
procedure TWorld.LoadFromFiles(const hmp, tex, texmap: string);
var
i: Integer;
begin
LoadHeightmap(hmp);
LoadTextures(tex, texmap);
for i := 0 to heightmap.tile_count - 1 do begin
heightmap.tiles[i].texture_index := heightmap.texture_index_map[heightmap.tiles[i].texture_index];
end;
end;
constructor TWorld.Create;

View File

@ -200,7 +200,7 @@ begin
view.pitch := 0;
view.x := 0;
view.y := 0;
view.autorotate := true;
view.autorotate := false;
view.opts.wireframe := false;
view.opts.points := false;
view.opts.vcolors := true;