From 57a2c07fe02bb20947943494385a3aa8c0599b8d Mon Sep 17 00:00:00 2001 From: UndeadMaelys Date: Tue, 16 Mar 2021 16:45:22 +0100 Subject: [PATCH] hotfix for walls --- main.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.lua b/main.lua index 0273edf..af6434e 100644 --- a/main.lua +++ b/main.lua @@ -96,13 +96,13 @@ function generate_museum(x,y,z) -- make the walls for w = 0, width, 1 do for h = 0, height, 1 do - table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x+w,y-h,z},{0,math.pi/2,0},{-1,1,-1})) - table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x+w,y-h,z+depth},{0,math.pi/2,0},{-1,1,-1})) + table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x+w,y-h-1,z},{0,math.pi/2,0},{-1,1,-1})) + table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x+w,y-h-1,z+depth},{0,math.pi/2,0},{-1,1,-1})) end end for d = 0, depth, 1 do for h = 0, height, 1 do - table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x,y-h,z+d},{0,0,0},{-1,1,-1})) - table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x+width,y-h,z+d},{0,0,0},{-1,1,-1})) + table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x,y-h-1,z+d},{0,0,0},{-1,1,-1})) + table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x+width,y-h-1,z+d},{0,0,0},{-1,1,-1})) end end -- decorate with paintings