aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/world.cpp b/src/world.cpp
index f4be288..9a47576 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -173,10 +173,10 @@ void WorldSystem::fight(entityx::Entity entity)
door.assign<Portal>(exit);
auto sprite = door.assign<Sprite>();
- Texture dtex ("assets/style/classic/door.png");
+ auto dtex = game::engine.getSystem<RenderSystem>()->loadTexture("assets/style/classic/door.png");
sprite->addSpriteSegment(SpriteData(dtex), 0);
- auto dim = sprite->getSpriteSize();
+ auto dim = HLINES(sprite->getSpriteSize());
door.assign<Solid>(dim.x, dim.y);
}