From ebe2fcfce52d9a303c5fa19d79554e20ac7f0bac Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Thu, 19 Dec 2024 09:07:34 +0100 Subject: removed absolute position because jaro is adjusting that --- src/crepe/system/RenderSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp index ba09530..b4b745f 100644 --- a/src/crepe/system/RenderSystem.cpp +++ b/src/crepe/system/RenderSystem.cpp @@ -122,7 +122,7 @@ bool RenderSystem::render_particle(const Sprite & sprite, const Transform & tm){ ctx.draw(SDLContext::RenderContext{ .sprite = sprite, .texture = res, - .pos = AbsoluutPosition::get_position(tm, em.data.offset + sprite.data.position_offset), + .pos = p.position, .angle = p.angle, .scale = tm.scale, }); @@ -138,7 +138,7 @@ void RenderSystem::render_normal(const Sprite & sprite, const Transform & tm) { ctx.draw(SDLContext::RenderContext{ .sprite = sprite, .texture = res, - .pos = AbsoluutPosition::get_position(tm, sprite.data.position_offset), + .pos = tm.position, .angle = tm.rotation, .scale = tm.scale, }); -- cgit v1.2.3