]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/exclusa.cpp
ahora si se verifica que esten conectados, aunque esto lo tengo que arreglar porque...
[z.facultad/75.42/plaqui.git] / Constructor / exclusa.cpp
index 516f689203d197995b3c7a41474bf2e91428a577..c0348f8d3ceab52a334504e106d07b67db70a3f8 100644 (file)
@@ -98,13 +98,13 @@ bool Exclusa::check_connection()
 {
        switch (get_img_actual()) {
                        case 0:
 {
        switch (get_img_actual()) {
                        case 0:
-                               if ( is_other_occupied_area( get_position_x()+get_image()->get_width()/2, get_position_y()+get_image()->get_height()+10) && 
-                                        is_other_occupied_area( get_position_x()+get_image()->get_width()/2, get_position_y() - 10) )
+                               if ( is_other_occupied_area( get_position_x()+get_image()->get_width()+10, get_position_y()+10) && 
+                                        is_other_occupied_area( get_position_x()-10, get_position_y() + 10) )
                                        return true;                            
                                break;
                        case 1:
                                        return true;                            
                                break;
                        case 1:
-                               if ( is_other_occupied_area( get_position_x()-10, get_position_y()+get_image()->get_height()/2) && 
-                                        is_other_occupied_area( get_position_x()+get_image()->get_width()+10, get_position_y()+get_image()->get_height()/2) )
+                               if ( is_other_occupied_area( get_position_x()+10, get_position_y()-10 ) && 
+                                        is_other_occupied_area( get_position_x()+get_image()->get_width()-10, get_position_y()+get_image()->get_height()+10) )
                                return true;
        }
        return false;
                                return true;
        }
        return false;