X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f031c89fa8a00ea12ff7290569ec507f44402458..e7bc59fe98396b7c67024911b03bf1e08728df3e:/Model/src/drainage.cpp diff --git a/Model/src/drainage.cpp b/Model/src/drainage.cpp index ac2868a..6d79534 100644 --- a/Model/src/drainage.cpp +++ b/Model/src/drainage.cpp @@ -27,8 +27,11 @@ void Drainage::update(int dir) void Drainage::simulate() { +#ifdef DEBUG std::cout << name << "::Flujo recibido = " << actual_flow << std::endl; +#endif updated = false; + color_updated = false; actual_flow = 0; } @@ -39,7 +42,6 @@ void Drainage::recieve_msg(int msg, IConector *who, void *data) case MSG_QUERY_MAX_FLOW_OUT: // FIXME Hacer INFINITO !!! actual_flow = *((float *)data); - std::cout << "DD" << std::endl; tmp = 999999; who->recieve_msg(MSG_RESPONSE_MAX_FLOW, this, &tmp); updated = true;