+ if (ValueNode_Animated::Handle::cast_dynamic(link_value_node)->waypoint_list().size() <
+ ValueNode_Animated::Handle::cast_dynamic(value_desc.get_value_node())->waypoint_list().size())
+ {
+ status_level = 4;
+ status_message = _("There's a tie for most referenced, and both are animated; using the one with the most waypoints.");
+ link_value_node=value_desc.get_value_node();
+ }
+ else if (status_level <= 4)
+ {
+ status_level = 4;
+ status_message = _("There's a tie for most referenced, and both are animated; using the one with the most waypoints.");
+ }
+ }
+ // Use the one that was least recently changed
+ else if(link_value_node->get_time_last_changed()!=value_desc.get_value_node()->get_time_last_changed())
+ {
+ if(link_value_node->get_time_last_changed()>value_desc.get_value_node()->get_time_last_changed())
+ {
+ status_level = 5;
+ status_message = _("Everything is tied; using the least recently modified value.");
+ link_value_node=value_desc.get_value_node();
+ }
+ else if (status_level <= 5)
+ {
+ status_level = 5;
+ status_message = _("Everything is tied; using the least recently modified value.");
+ }
+ }
+ else
+ {
+ status_level = 6;
+ status_message = _("Absolutely everything is tied.");