From 5a087d8a01d00a737ae602370c2c3514294da88d Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Thu, 19 Dec 2024 08:11:27 +0100 Subject: rotating sprite on particle --- src/crepe/system/RenderSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crepe') 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, }); } -- cgit v1.2.3