diff --git a/source/main.adb b/source/main.adb index 4fe8826..1a90e57 100644 --- a/source/main.adb +++ b/source/main.adb @@ -331,7 +331,7 @@ begin ui.synchronize; end loop gameplay_loop; - --~world.mapshot ("./test.png"); + world.mapshot ("./test.png"); ------------------------------------------------------------------------------------------ diff --git a/source/world.adb b/source/world.adb index e2e7bee..2a15747 100644 --- a/source/world.adb +++ b/source/world.adb @@ -286,8 +286,8 @@ package body world is -- for index in 1 .. construction_limit loop core.render_image (data => construction.sprite (construction.enumeration'val (map.constructions (index).index)), - x => map.landmarks (index).x * core.base, - y => map.landmarks (index).y * core.base, + x => map.constructions (index).x * core.base, + y => map.constructions (index).y * core.base, u => 0, v => 0, 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 core.render_image (data => equipment.sprite (equipment.enumeration'val (map.equipments (index).index)), - x => map.landmarks (index).x * core.base, - y => map.landmarks (index).y * core.base, + x => map.equipments (index).x * core.base, + y => map.equipments (index).y * core.base, u => 0, v => 0, width => equipment.sprite (equipment.enumeration'val (map.equipments (index).index)).width,