From 6541486967d17f1e30c83c9c02fc959f5c57d029 Mon Sep 17 00:00:00 2001 From: groogy Date: Mon, 29 Nov 2010 08:51:37 +0000 Subject: [PATCH] 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 --- bindings/ruby/sfml-graphics/graphics/Rect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/ruby/sfml-graphics/graphics/Rect.cpp b/bindings/ruby/sfml-graphics/graphics/Rect.cpp index 5bd07a2f..491ab210 100644 --- a/bindings/ruby/sfml-graphics/graphics/Rect.cpp +++ b/bindings/ruby/sfml-graphics/graphics/Rect.cpp @@ -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; }