From 9c226e1346e8b21a3d9b7ff5d7ba342c5c0f3034 Mon Sep 17 00:00:00 2001 From: Matroftt <91145555+Matroftt@users.noreply.github.com> Date: Wed, 11 Sep 2024 09:43:04 +0300 Subject: [PATCH] Add explanation --- CorsixTH/Lua/dialogs/staff_dialog.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CorsixTH/Lua/dialogs/staff_dialog.lua b/CorsixTH/Lua/dialogs/staff_dialog.lua index 5d585985b..897710786 100644 --- a/CorsixTH/Lua/dialogs/staff_dialog.lua +++ b/CorsixTH/Lua/dialogs/staff_dialog.lua @@ -261,7 +261,7 @@ function UIStaff:onMouseUp(button, x, y) local repaint = Window.onMouseUp(self, button, x, y) -- Test for hit within the view circle if button == "right" and is_in_view_circle(x, y, self.staff.profile.humanoid_class == "Handyman") - or x > 18 and x < 170 and y > 19 and y < 42 then + or x > 18 and x < 170 and y > 19 and y < 42 then -- Coordinates of name label -- Right click goes to the next staff member of the same category (NB: Surgeon in same Category as Doctor) local staff_index = nil for i, staff in ipairs(ui.hospital.staff) do