Browse Source

Fix incorrect particle offsets when Quads are used without setOffset.

Fixes #1741.
Alex Szpakowski 3 years ago
parent
commit
bd741a8c78
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/ParticleSystem.cpp

+ 1 - 1
src/modules/graphics/ParticleSystem.cpp

@@ -177,7 +177,7 @@ void ParticleSystem::resetOffset()
 	else
 	{
 		Quad::Viewport v = quads[0]->getViewport();
-		offset = love::Vector2(v.x*0.5f, v.y*0.5f);
+		offset = love::Vector2(v.w*0.5f, v.h*0.5f);
 	}
 }