Skip to content

Commit

Permalink
actually use the repeat variable ever it should be used
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Feb 23, 2024
1 parent eaa45bd commit 6e0a192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/objects/structures/barricade/barricade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
playsound(src.loc, 'sound/items/Welder2.ogg', 25, TRUE)

welder = user.get_active_hand()
if(can_weld(welder, user, silent = TRUE))
if(repeat && can_weld(welder, user, silent = TRUE))
// Assumption: The implementation of can_weld will return false if fully repaired
if(!try_weld_cade(welder, user, repeat = TRUE, skip_check = TRUE))
// If this returned false, then we were interrupted or ran out of fuel, so stop looping
Expand Down

0 comments on commit 6e0a192

Please sign in to comment.