Fix incorrect particle offsets when Quads are used without setOffset.

Fixes #1741.
This commit is contained in:
Alex Szpakowski
2021-11-19 21:44:04 -04:00
parent 0f9e598ebb
commit bd741a8c78
+1 -1
View File
@@ -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);
}
}