3 ms·
The proper way to avoid the return _results is just put a blank return statement in the last line of the function. (x, y) -> for game_piece in @game_
by chime 15y ago
The proper way to avoid the return _results is just put a blank return statement in the last line of the function.
(x, y) ->
for game_piece in @game_pieces
if game_piece.is_at x, y
@held_item = game_piece
@held_item.start_dragging x, y
break
return