case MSG_QUERY_COLOR:
if (color_updated) {
who->recieve_msg(MSG_RESPONSE_COLOR, this, &fluid_color);
+ return;
}
update_color();
who->recieve_msg(MSG_RESPONSE_COLOR, this, &fluid_color);
{
if (color_updated) return;
- send_msg(IConector::IN, MSG_QUERY_COLOR);
color_updated = true;
+ send_msg(IConector::IN, MSG_QUERY_COLOR);
}
void PlantItem::get_state_as_xml(std::stringstream &out)