X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/07b9abd79bb3f097d8bf67d217d077a7da4b1e46..43fc1b3f57852f2af098fa7411e83220015aaa6f:/Constructor/conduct.cpp?ds=sidebyside diff --git a/Constructor/conduct.cpp b/Constructor/conduct.cpp index 1a75aef..9b2e31f 100644 --- a/Constructor/conduct.cpp +++ b/Constructor/conduct.cpp @@ -94,11 +94,10 @@ bool Conduct::check_connection() if ( is_other_connection_area( get_position_x()+16, get_position_y()-5) && is_other_connection_area( get_position_x()+16, get_position_y()+get_image()->get_height() +5) ) return true; - break; case 1: if ( is_other_connection_area( get_position_x()-5, get_position_y()+16) && is_other_connection_area( get_position_x()+get_image()->get_width()+5, get_position_y()+16) ) - return true; + return true; } return false; }