From 4bf539d953871dbddddcc00275ffdcaddece5091 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Sat, 14 Sep 2019 02:51:20 -0400 Subject: Updated world texture loading in Lua --- src/world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/world.cpp') diff --git a/src/world.cpp b/src/world.cpp index 1dca763..3fb5b6b 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -144,7 +144,7 @@ void World::generateMesh() Texture &t = registry.at(d).texture; glm::vec2& to = t.offset; - glm::vec2& ts = t.offsetSize; + glm::vec2& ts = t.size; mesh += {X , Y , Z, to.x , to.y+ts.y, 1.0}; mesh += {X+1, Y , Z, to.x+ts.x, to.y+ts.y, 1.0}; -- cgit v1.2.3