diff --git a/src/netanim/model/animation-interface.cc b/src/netanim/model/animation-interface.cc index 702925477..66b2f09d0 100644 --- a/src/netanim/model/animation-interface.cc +++ b/src/netanim/model/animation-interface.cc @@ -246,6 +246,7 @@ void AnimationInterface::StartAnimation () { Vector v = GetPosition (n); oss << GetXMLOpenClose_node (0,n->GetId (),v.x,v.y); + WriteN (m_fHandle, oss.str ()); } else { @@ -253,9 +254,8 @@ void AnimationInterface::StartAnimation () Vector v = GetPosition (n); oss << "0.0 N " << n->GetId () << " " << v.x << " " << v.y << std::endl; + WriteN (m_fHandle, oss.str ().c_str (), oss.str ().length ()); } - - WriteN (m_fHandle, oss.str ().c_str (), oss.str ().length ()); } NS_LOG_INFO ("Setting p2p links"); // Now dump the p2p links