Skip to content

Commit

Permalink
[MIRROR] Fixes paint sprayer for borgs (#2870)
Browse files Browse the repository at this point in the history
Co-authored-by: Hubblenaut <[email protected]>
Co-authored-by: Lexanx <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2024
1 parent d53f86d commit b4157c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/game/objects/items/devices/paint_sprayer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@
/obj/item/device/paint_sprayer/proc/calc_paint_dir(mob/user, placement_mode, click_parameters, inversed)
if (!placement_mode)
return user.dir
if (istext(click_parameters)) // Borgs pass down click parameters in a string format
click_parameters = params2list(click_parameters)
var/mouse_x = text2num(click_parameters["icon-x"])
var/mouse_y = text2num(click_parameters["icon-y"])
switch (placement_mode)
Expand Down

0 comments on commit b4157c8

Please sign in to comment.