summaryrefslogtreecommitdiffstats
path: root/src/view
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-11-04 20:04:48 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-11-04 20:04:48 +0100
commitc86c56d44d0d647f498b48ba6053349e2e28111a (patch)
tree64204286f14e16b47d613f4e04318ad012b37f49 /src/view
parenta4978eb75111ce002426b874fd0b5279e4ae3234 (diff)
downloadrpgedit-c86c56d44d0d647f498b48ba6053349e2e28111a.tar
rpgedit-c86c56d44d0d647f498b48ba6053349e2e28111a.zip
Minor code improvements
Diffstat (limited to 'src/view')
-rw-r--r--src/view/entity.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/entity.ts b/src/view/entity.ts
index 015875a..6241387 100644
--- a/src/view/entity.ts
+++ b/src/view/entity.ts
@@ -13,6 +13,6 @@ export async function loadSimpleEntity(
const [x, y] = anchor;
const builder = new SpriteViewBuilder(r, texture);
- builder.addSprite([-x, -y, 1 - x, 1 - y], [0, 0, 1, 1]);
+ builder.addSprite([-x, -y, -x + 1, -y + 1], [0, 0, 1, 1]);
return builder.build();
}