diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-19 09:07:34 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-19 09:07:34 +0100 |
commit | ebe2fcfce52d9a303c5fa19d79554e20ac7f0bac (patch) | |
tree | fa439f34c28973eb7adff6052d96bff8a45d663a /src/crepe | |
parent | d0286486b5fddcfb32dcd1f3010aef5368ee678e (diff) |
removed absolute position because jaro is adjusting that
Diffstat (limited to 'src/crepe')
-rw-r--r-- | src/crepe/system/RenderSystem.cpp | 4 |
1 files 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, }); |