From e773e4b3859aacd5b986c3b11fb25736062a4407 Mon Sep 17 00:00:00 2001 From: xolatile Date: Thu, 16 May 2024 15:31:48 -0400 Subject: [PATCH] Minor mapshot fix... --- source/main.adb | 2 +- source/world.adb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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,