X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/a4fcf877753b034b1df7fa73d41388849fbc9000..e7bc59fe98396b7c67024911b03bf1e08728df3e:/Model/src/exclusa.cpp?ds=inline diff --git a/Model/src/exclusa.cpp b/Model/src/exclusa.cpp index cc61519..f293208 100644 --- a/Model/src/exclusa.cpp +++ b/Model/src/exclusa.cpp @@ -34,14 +34,12 @@ void Exclusa::update(int dir) void Exclusa::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 << ": " << ((is_open)?"Abierta":"Cerrada") << std::endl; #endif + + updated = false; + color_updated = false; } void Exclusa::recieve_msg(int msg, IConector *who, void *data)