1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-24 17:26:41 +00:00

fix oversized tile quads when moving font tiles in the editor

This commit is contained in:
fgenesis 2023-10-25 00:50:57 +02:00
parent 011b9f2a82
commit 04512d7b57

View file

@ -102,9 +102,9 @@ std::string getMapTemplateFilename()
static void tileToQuad(Quad *q, const TileData& t)
{
q->position = Vector(t.x, t.y);
q->setWidthHeight(t.et->w, t.et->h);
q->scale = Vector(t.scalex, t.scaley);
q->setTexturePointer(t.et->tex);
q->setWidthHeight(t.et->w, t.et->h); // set AFTER texture
q->scale = Vector(t.scalex, t.scaley);
q->fhTo(!!(t.flags & TILEFLAG_FH));
q->rotation.z = t.rotation;
if(t.flags & TILEFLAG_REPEAT && t.rep)