Skip to content

Commit

Permalink
Add explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matroftt authored Sep 11, 2024
1 parent fef0e69 commit 9c226e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CorsixTH/Lua/dialogs/staff_dialog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c226e1

Please sign in to comment.