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:
parent
89f88b0918
commit
8f9fb78d19
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user