Minor mapshot fix...

This commit is contained in:
Ognjen Milan Robovic 2024-05-16 15:31:48 -04:00
parent f2dede1a16
commit e773e4b385
2 changed files with 5 additions and 5 deletions

View File

@ -331,7 +331,7 @@ begin
ui.synchronize; ui.synchronize;
end loop gameplay_loop; end loop gameplay_loop;
--~world.mapshot ("./test.png"); world.mapshot ("./test.png");
------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------

View File

@ -286,8 +286,8 @@ package body world is
-- --
for index in 1 .. construction_limit loop for index in 1 .. construction_limit loop
core.render_image (data => construction.sprite (construction.enumeration'val (map.constructions (index).index)), core.render_image (data => construction.sprite (construction.enumeration'val (map.constructions (index).index)),
x => map.landmarks (index).x * core.base, x => map.constructions (index).x * core.base,
y => map.landmarks (index).y * core.base, y => map.constructions (index).y * core.base,
u => 0, u => 0,
v => 0, v => 0,
width => construction.sprite (construction.enumeration'val (map.constructions (index).index)).width, width => construction.sprite (construction.enumeration'val (map.constructions (index).index)).width,
@ -296,8 +296,8 @@ package body world is
-- --
for index in 1 .. equipment_limit loop for index in 1 .. equipment_limit loop
core.render_image (data => equipment.sprite (equipment.enumeration'val (map.equipments (index).index)), core.render_image (data => equipment.sprite (equipment.enumeration'val (map.equipments (index).index)),
x => map.landmarks (index).x * core.base, x => map.equipments (index).x * core.base,
y => map.landmarks (index).y * core.base, y => map.equipments (index).y * core.base,
u => 0, u => 0,
v => 0, v => 0,
width => equipment.sprite (equipment.enumeration'val (map.equipments (index).index)).width, width => equipment.sprite (equipment.enumeration'val (map.equipments (index).index)).width,