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:
groogy 2010-11-29 08:51:37 +00:00
parent 166de04854
commit 6541486967

View File

@ -215,7 +215,7 @@ static VALUE Rect_Intersects( VALUE self, VALUE aRect )
top = rectTop; top = rectTop;
} }
if( rb_funcall( selfRight , rb_intern( ">" ), 1, rectRight ) == Qtrue ) if( rb_funcall( selfRight , rb_intern( "<" ), 1, rectRight ) == Qtrue )
{ {
right = selfRight; right = selfRight;
} }
@ -224,7 +224,7 @@ static VALUE Rect_Intersects( VALUE self, VALUE aRect )
right = rectRight; right = rectRight;
} }
if( rb_funcall( selfBottom , rb_intern( ">" ), 1, rectBottom ) == Qtrue ) if( rb_funcall( selfBottom , rb_intern( "<" ), 1, rectBottom ) == Qtrue )
{ {
bottom = selfBottom; bottom = selfBottom;
} }