Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- var ds,selected;
- ds = ds_priority_create();
- ds_priority_add(ds,noone,100000000);
- with (argument2) {
- if (image_blend != other.image_blend) {
- ds_priority_add(ds,id,point_distance(argument0,argument1,other.x,other.y));
- }
- }
- selected = ds_priority_find_min(ds);
- ds_priority_destroy(ds);
- return selected;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement