X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/a4fcf877753b034b1df7fa73d41388849fbc9000..c89fed66c4fa3004270e84562e62b796f1208293:/Model/src/splitter.cpp diff --git a/Model/src/splitter.cpp b/Model/src/splitter.cpp index c3ce1b4..cd3ccad 100644 --- a/Model/src/splitter.cpp +++ b/Model/src/splitter.cpp @@ -72,7 +72,7 @@ void Splitter::update(int dir) // Si ya me actualice, no lo tengo que hacer de nuevo if (updated) return; // Seteo mi actualizar en true para evitar entrar de nuevo - actual_flow = 99999; + actual_flow = INFINITO; updated = true; switch (dir) { case IN: @@ -89,14 +89,10 @@ 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() ); - } #ifdef DEBUG std::cout << name << "::Flujo actual = " << actual_flow << std::endl; #endif updated = false; + color_updated = false; }