X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/5de53f103d295086898889bfa39bb49335914470..24b6a7f8209541d589b0bdeb38493a67b94d1551:/Model/src/splitter.cpp?ds=sidebyside diff --git a/Model/src/splitter.cpp b/Model/src/splitter.cpp index 360c004..7afa150 100644 --- a/Model/src/splitter.cpp +++ b/Model/src/splitter.cpp @@ -46,6 +46,7 @@ void Splitter::recieve_msg(int msg, IConector *who, void *data) break; case MSG_RESPONSE_MAX_FLOW: { float max = *((float *)data); + std::cout << name << ":Split " << max << std::endl; if (pos == OUT) { if (max < actual_flow) actual_flow = max; if (max_flow < actual_flow) actual_flow = max_flow; @@ -82,6 +83,11 @@ void Splitter::simulate() return; } + std::list::iterator i = in_list.begin(); + if (i != in_list.end()) { + PlantItem *o = (PlantItem *)(*i); + set_color( o->get_color() ); + } std::cout << name << "::Flujo actual = " << actual_flow << std::endl; updated = false; }