diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-03 09:10:09 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-03 09:10:09 +1000 |
commit | 069d61e487947a8be38f6a3db52695db94fd306e (patch) | |
tree | 4408bd7f3aa116d87c6dfd3e8394a3d7996f6b6a /source/game/scripting/StarLuaGameConverters.cpp | |
parent | 7999442f01140eec6cba813bb76fc3b5c9e5aa90 (diff) |
Fix scaling a better way
Diffstat (limited to 'source/game/scripting/StarLuaGameConverters.cpp')
-rw-r--r-- | source/game/scripting/StarLuaGameConverters.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/game/scripting/StarLuaGameConverters.cpp b/source/game/scripting/StarLuaGameConverters.cpp index baae984..070048e 100644 --- a/source/game/scripting/StarLuaGameConverters.cpp +++ b/source/game/scripting/StarLuaGameConverters.cpp @@ -449,12 +449,7 @@ Maybe<Drawable> LuaConverter<Drawable>::to(LuaEngine& engine, LuaValue const& v) else if (auto poly = table->get<Maybe<PolyF>>("poly")) drawable = Drawable::makePoly(poly.take(), color); else if (auto image = table->get<Maybe<String>>("image")) - drawable = Drawable::makeImage( - image.take(), - table->get<Maybe<bool>>("screenSpace").value(false) ? 1.0f : 1.0f / TilePixels, - table->get<Maybe<bool>>("centered").value(true), - Vec2F(), - color); + drawable = Drawable::makeImage(image.take(), 1.0f, table->get<Maybe<bool>>("centered").value(true), Vec2F(), color); else return {}; // throw LuaAnimationComponentException("Drawable table must have 'line', 'poly', or 'image'"); |