X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/be1908f8097dbbc871bfd7c55432de43d25647b7..dafb509182bac9b314202fe7dfaf58206da5ccbe:/Model/src/tank.cpp?ds=inline 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);