From 7146be1f3f394c1e326d6e8190faba0aa971142f Mon Sep 17 00:00:00 2001 From: Rookzor Date: Mon, 9 Oct 2023 19:07:57 +0200 Subject: [PATCH] Update gui_ping_wheel.lua This tiny edit fixes issue when building while holding just shift, without alt. This is handy when building mines, or even some towers that you don't necessarily want in square shape. --- gui_ping_wheel.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui_ping_wheel.lua b/gui_ping_wheel.lua index 08af195..8d7b645 100644 --- a/gui_ping_wheel.lua +++ b/gui_ping_wheel.lua @@ -289,7 +289,7 @@ function widget:MousePress(mx, my, button) -- functionality of mouse build spacing is put in here, sigh -- check if alt is pressed local alt, ctrl, meta, shift = spGetModKeyState() - if (button == 4 or button == 5) and alt then + if (button == 4 or button == 5) and (alt or shift) then if button == 4 then Spring.SendCommands("buildspacing inc") elseif button == 5 then