-void xml_Select (char *msg, int entitynum, int brushnum, qboolean bError)
-{
- xmlNodePtr node, select;
- char buf[1024];
- char level[2];
-
- // now build a proper "select" XML node
- sprintf (buf, "Entity %i, Brush %i: %s", entitynum, brushnum, msg);
- node = xmlNewNode (NULL, "select");
- xmlNodeSetContent (node, buf);
- level[0] = (int)'0' + (bError ? SYS_ERR : SYS_WRN) ;
- level[1] = 0;
- xmlSetProp (node, "level", (char *)&level);
- // a 'select' information
- sprintf (buf, "%i %i", entitynum, brushnum);
- select = xmlNewNode (NULL, "brush");
- xmlNodeSetContent (select, buf);
- xmlAddChild (node, select);
- xml_SendNode (node);
-
- sprintf (buf, "Entity %i, Brush %i: %s", entitynum, brushnum, msg);
- if (bError)
- Error(buf);
- else
- Sys_FPrintf (SYS_NOXML, "%s\n", buf);
+void xml_Select( char *msg, int entitynum, int brushnum, qboolean bError ){
+ xmlNodePtr node, select;
+ char buf[1024];
+ char level[2];
+
+ // now build a proper "select" XML node
+ sprintf( buf, "Entity %i, Brush %i: %s", entitynum, brushnum, msg );
+ node = xmlNewNode( NULL, (xmlChar*)"select" );
+ xmlNodeSetContent( node, (xmlChar*)buf );
+ level[0] = (int)'0' + ( bError ? SYS_ERR : SYS_WRN ) ;
+ level[1] = 0;
+ xmlSetProp( node, (xmlChar*)"level", (xmlChar *)&level );
+ // a 'select' information
+ sprintf( buf, "%i %i", entitynum, brushnum );
+ select = xmlNewNode( NULL, (xmlChar*)"brush" );
+ xmlNodeSetContent( select, (xmlChar*)buf );
+ xmlAddChild( node, select );
+ xml_SendNode( node );
+
+ sprintf( buf, "Entity %i, Brush %i: %s", entitynum, brushnum, msg );
+ if ( bError ) {
+ Error( buf );
+ }
+ else{
+ Sys_FPrintf( SYS_NOXML, "%s\n", buf );
+ }