]> git.lizzy.rs Git - signs_lib.git/commitdiff
Fix missing offsets on wallmount selboxes
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>
Wed, 11 Sep 2019 20:21:44 +0000 (16:21 -0400)
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>
Wed, 11 Sep 2019 20:21:44 +0000 (16:21 -0400)
api.lua

diff --git a/api.lua b/api.lua
index 55aaa6487425d6c647207ee71f4016f013f28fa1..f42b91bebd98c314258b02648540ee9ab16cba2a 100644 (file)
--- a/api.lua
+++ b/api.lua
@@ -572,7 +572,7 @@ function signs_lib.make_selection_boxes(sizex, sizey, onpole, xoffs, yoffs, zoff
                if not fdir then
                        return {
                                type = "wallmounted",
-                               wall_side =   { -0.5, -ty, -tx, -0.4375, ty, tx },
+                               wall_side =   { -0.5 + zo, -ty + yo, -tx + xo, -0.4375 + zo, ty + yo, tx + xo },
                                wall_top =    { -tx - xo, 0.5 + zo, -ty + yo, tx - xo, 0.4375 + zo, ty + yo},
                                wall_bottom = { -tx - xo, -0.5 + zo, -ty + yo, tx - xo, -0.4375 + zo, ty + yo }
                        }