X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/be1908f8097dbbc871bfd7c55432de43d25647b7..fb8d2fb83534b0ca76f81e6d107e38d002642a46:/Model/src/tank.cpp diff --git a/Model/src/tank.cpp b/Model/src/tank.cpp index b3a940e..3f2fe43 100644 --- a/Model/src/tank.cpp +++ b/Model/src/tank.cpp @@ -71,6 +71,9 @@ void Tank::recieve_msg(int msg, IConector *who, void *data) switch (msg) { case MSG_QUERY_MAX_FLOW_OUT: + if (updated) { + who->recieve_msg(MSG_RESPONSE_MAX_FLOW, this, &actual_in_flow); + } actual_in_flow = capacity - litros; if (*((float *)data) < actual_in_flow) actual_in_flow = *((float *)data);