NetAnim:Use overloaded WriteN for xml

This commit is contained in:
John Abraham
2011-08-25 06:36:33 -04:00
parent 79cc699dc1
commit 69b4b9f1c8

View File

@@ -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