int collision_line(double x1, double y1, double x2, double y2, int obj, bool prec /*ignored*/, bool notme) { const enigma::object_collisions* r = collide_inst_line(obj,false,notme,x1+.5,y1+.5,x2+.5,y2+.5); //false is for solid_only, not prec return r == NULL ? noone : r->id; }
int collision_line(double x1, double y1, double x2, double y2, int obj, bool prec, bool notme) { const enigma::object_collisions* r = collide_inst_line(obj,false,prec,notme,x1+.5,y1+.5,x2+.5,y2+.5); return r == NULL ? noone : r->id; }