X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/0aacdcf95cf6d4f33a2201160d472ab84148d52b..fb8d2fb83534b0ca76f81e6d107e38d002642a46:/Model/src/drainage.cpp?ds=sidebyside diff --git a/Model/src/drainage.cpp b/Model/src/drainage.cpp index 80dc010..bc83db6 100644 --- a/Model/src/drainage.cpp +++ b/Model/src/drainage.cpp @@ -27,7 +27,14 @@ 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; actual_flow = 0; }