]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/brushxml.h
Implement buffer operations
[xonotic/netradiant.git] / radiant / brushxml.h
index d312591cc492b56d1778f471c3784d268330fcbd..3059f0729637ececf5fbd1da76addedf76d36932 100644 (file)
@@ -236,13 +236,13 @@ inline void FacePolygon_exportXML( const Winding& w, const BasicVector3<double>&
 
        auto tmp = u::buffer<32>();
 
-       sprintf( tmp, "%f", normal.x() );
+    tmp.sprintf( "%f", normal.x() );
        element.insertAttribute( "nx", tmp );
 
-       sprintf( tmp, "%f", normal.y() );
+    tmp.sprintf( "%f", normal.y() );
        element.insertAttribute( "ny", tmp );
 
-       sprintf( tmp, "%f", normal.z() );
+    tmp.sprintf( "%f", normal.z() );
        element.insertAttribute( "nz", tmp );
 
        importer.pushElement( element );
@@ -251,19 +251,19 @@ inline void FacePolygon_exportXML( const Winding& w, const BasicVector3<double>&
        {
                DynamicElement c( "vertex" );
 
-               sprintf( tmp, "%f", w.points[i].vertex.x() );
+               tmp.sprintf( "%f", w.points[i].vertex.x() );
                c.insertAttribute( "x", tmp );
 
-               sprintf( tmp, "%f", w.points[i].vertex.y() );
+               tmp.sprintf( "%f", w.points[i].vertex.y() );
                c.insertAttribute( "y", tmp );
 
-               sprintf( tmp, "%f", w.points[i].vertex.z() );
+               tmp.sprintf( "%f", w.points[i].vertex.z() );
                c.insertAttribute( "z", tmp );
 
-               sprintf( tmp, "%f", w.points[i].texcoord.x() );
+               tmp.sprintf( "%f", w.points[i].texcoord.x() );
                c.insertAttribute( "s", tmp );
 
-               sprintf( tmp, "%f", w.points[i].texcoord.y() );
+               tmp.sprintf( "%f", w.points[i].texcoord.y() );
                c.insertAttribute( "t", tmp );
 
                importer.pushElement( c );