Fixed an invalid comparison in SFML::Rect#intersects
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1725 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
166de04854
commit
6541486967
@ -215,7 +215,7 @@ static VALUE Rect_Intersects( VALUE self, VALUE aRect )
|
||||
top = rectTop;
|
||||
}
|
||||
|
||||
if( rb_funcall( selfRight , rb_intern( ">" ), 1, rectRight ) == Qtrue )
|
||||
if( rb_funcall( selfRight , rb_intern( "<" ), 1, rectRight ) == Qtrue )
|
||||
{
|
||||
right = selfRight;
|
||||
}
|
||||
@ -224,7 +224,7 @@ static VALUE Rect_Intersects( VALUE self, VALUE aRect )
|
||||
right = rectRight;
|
||||
}
|
||||
|
||||
if( rb_funcall( selfBottom , rb_intern( ">" ), 1, rectBottom ) == Qtrue )
|
||||
if( rb_funcall( selfBottom , rb_intern( "<" ), 1, rectBottom ) == Qtrue )
|
||||
{
|
||||
bottom = selfBottom;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user