aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/RenderSystem.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-19 08:11:27 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-19 08:11:27 +0100
commit5a087d8a01d00a737ae602370c2c3514294da88d (patch)
treea15305269ce8d2455ebbf27359ba3cd4cd7a7a0b /src/crepe/system/RenderSystem.cpp
parentbe36b204c6dc597f74541e926f2f2821ab553228 (diff)
rotating sprite on particle
Diffstat (limited to 'src/crepe/system/RenderSystem.cpp')
-rw-r--r--src/crepe/system/RenderSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp
index d76a122..1091c3f 100644
--- a/src/crepe/system/RenderSystem.cpp
+++ b/src/crepe/system/RenderSystem.cpp
@@ -98,7 +98,7 @@ bool RenderSystem::render_particle(const Sprite & sprite, const double & scale)
.sprite = sprite,
.texture = res,
.pos = p.position,
- .angle = p.angle,
+ .angle = p.angle+sprite.data.angle_offset,
.scale = scale,
});
}