From 04512d7b5771813291623160b900ee03105573dd Mon Sep 17 00:00:00 2001 From: fgenesis Date: Wed, 25 Oct 2023 00:50:57 +0200 Subject: [PATCH] fix oversized tile quads when moving font tiles in the editor --- Aquaria/SceneEditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Aquaria/SceneEditor.cpp b/Aquaria/SceneEditor.cpp index 4e5a465..8c7d295 100644 --- a/Aquaria/SceneEditor.cpp +++ b/Aquaria/SceneEditor.cpp @@ -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)