Fix missing offsets on wallmount selboxes

This commit is contained in:
Vanessa Dannenberg 2019-09-11 16:21:44 -04:00
parent 4614d66cbe
commit fb77cc5708

View File

@ -572,7 +572,7 @@ function signs_lib.make_selection_boxes(sizex, sizey, onpole, xoffs, yoffs, zoff
if not fdir then if not fdir then
return { return {
type = "wallmounted", 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_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 } wall_bottom = { -tx - xo, -0.5 + zo, -ty + yo, tx - xo, -0.4375 + zo, ty + yo }
} }