X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/be1908f8097dbbc871bfd7c55432de43d25647b7..c45e0693cd6b07a5123955102de53d96143f7fd8:/Model/src/drainage.cpp?ds=inline diff --git a/Model/src/drainage.cpp b/Model/src/drainage.cpp index bc83db6..6d79534 100644 --- a/Model/src/drainage.cpp +++ b/Model/src/drainage.cpp @@ -27,15 +27,11 @@ void Drainage::update(int dir) void Drainage::simulate() { - 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 recibido = " << actual_flow << std::endl; #endif updated = false; + color_updated = false; actual_flow = 0; }