X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/a4fcf877753b034b1df7fa73d41388849fbc9000..dfabbe2822ffdfb241105cff491b4331096e4af3:/Model/src/exclusa.cpp 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)