Merge pull request #13469 from pandamicro/v3.8

Fixed #12570: Correct `cc.pIsSegmentIntersect` for lua
This commit is contained in:
pandamicro 2015-08-19 16:22:22 +08:00
commit fc763e9732
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ 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
if ret and s >= 0.0 and s <= 1.0 and t >= 0.0 and t <= 1.0 then
return true
end