X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/4c30f5939017e47c70f79df3a9f737d9ea743db5..4f94fbe0a1d217c7410e5396aad365c85f1fc5af:/Model/src/drainage.cpp?ds=sidebyside diff --git a/Model/src/drainage.cpp b/Model/src/drainage.cpp index 6d79534..d421662 100644 --- a/Model/src/drainage.cpp +++ b/Model/src/drainage.cpp @@ -9,7 +9,7 @@ Drainage::Drainage(const std::string &_name):Drain(_name),Control(_name) in_slots = 1; out_slots = 0; // FIXME hacer INFINITO! - capacity = 99999; + capacity = INFINITO; actual_flow = 0.0f; } @@ -32,7 +32,6 @@ void Drainage::simulate() #endif updated = false; color_updated = false; - actual_flow = 0; } void Drainage::recieve_msg(int msg, IConector *who, void *data) @@ -42,7 +41,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 = 999999; + tmp = INFINITO; who->recieve_msg(MSG_RESPONSE_MAX_FLOW, this, &tmp); updated = true; break;