X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/551d0c744aaa1e33f000efb66b6f3f042966d21f..a9318661e45dfb9853c6aba811670571a5ec3ea2:/Constructor/item.cpp?ds=inline diff --git a/Constructor/item.cpp b/Constructor/item.cpp index 31d955d..5eb5721 100644 --- a/Constructor/item.cpp +++ b/Constructor/item.cpp @@ -138,12 +138,12 @@ bool CItem::is_occupied_area(int _a, int _b) else return false; } -bool CItem::is_other_occupied_area(int _a, int _b) +bool CItem::is_other_connection_area(int _a, int _b) { std::list::iterator i = listaItems->begin(); while ( i != listaItems->end() ){ CItem *temp = *i; - if ( temp->is_occupied_area(_a,_b) ) + if ( temp->is_connection_area(_a,_b) ) return true; i++; }