X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/4f94fbe0a1d217c7410e5396aad365c85f1fc5af..025f50123cb4ffad9847ea588967314e6aec0567:/Model/src/drainage.cpp?ds=inline diff --git a/Model/src/drainage.cpp b/Model/src/drainage.cpp index d421662..22b57b0 100644 --- a/Model/src/drainage.cpp +++ b/Model/src/drainage.cpp @@ -8,7 +8,6 @@ Drainage::Drainage(const std::string &_name):Drain(_name),Control(_name) { in_slots = 1; out_slots = 0; - // FIXME hacer INFINITO! capacity = INFINITO; actual_flow = 0.0f; } @@ -41,8 +40,7 @@ void Drainage::recieve_msg(int msg, IConector *who, void *data) case MSG_QUERY_MAX_FLOW_OUT: // FIXME Hacer INFINITO !!! actual_flow = *((float *)data); - tmp = INFINITO; - who->recieve_msg(MSG_RESPONSE_MAX_FLOW, this, &tmp); + who->recieve_msg(MSG_RESPONSE_MAX_FLOW, this, &actual_flow); updated = true; break; default: