X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/fb8d2fb83534b0ca76f81e6d107e38d002642a46..dfabbe2822ffdfb241105cff491b4331096e4af3:/Model/src/conduct.cpp diff --git a/Model/src/conduct.cpp b/Model/src/conduct.cpp index e4a89d0..08098d4 100644 --- a/Model/src/conduct.cpp +++ b/Model/src/conduct.cpp @@ -54,15 +54,9 @@ void Conduct::update(int dir) { // Si ya me actualice, no lo tengo que hacer de nuevo if (updated) { - std::list::iterator i = in_list.begin(); - if (i != in_list.end()) { - PlantItem *o = (PlantItem *)(*i); - set_color( o->get_color() ); - } return; } // Seteo mi actualizar en true para evitar entrar de nuevo - actual_flow = 99999; updated = true; actual_flow = max_flow; send_msg(OUT, MSG_QUERY_MAX_FLOW_OUT, (void *)&actual_flow); @@ -81,6 +75,7 @@ void Conduct::simulate() std::cout << name << "::Flujo actual = " << actual_flow << " de " << max_flow << std::endl; #endif updated = false; + color_updated = false; }