一个线段碰撞的Bug

function cc.pIsSegmentIntersect(pt1,pt2,pt3,pt4)
local s,t,ret = 0,0,false
ret,s,t =cc.pIsLineIntersect(pt1, pt2, pt3, pt4,s,t)

if ret and  s >= 0.0 and s <= 1.0 and t >= 0.0 and t <= 0.0 then
    return true;
end

return false

end

这里的 t >= 0.0 and t <= 0.0 是有问题的,正常应该是 t >= 0.0 and t <= 1.0。望改正