+ if ( detect_click_position((int)event->x, (int)event->y ) == OUT && !out_connected) {
+ CItem::gate_id = ID;
+ WorkPlace::pointed = ID;
+ }
+ if ( detect_click_position((int)event->x, (int)event->y ) == IN ) {
+ CItem::gate_id = ID;
+ WorkPlace::pointed = ID;
+ }