if ( DoLightIntensityDlg( &intensity ) == eIDOK ) {
g_iLastLightIntensity = intensity;
auto buf = u::buffer<30>();
- sprintf( buf, "255 255 255 %d", intensity );
+ buf.sprintf( "255 255 255 %d", intensity );
Node_getEntity( node )->setKeyValue( "_light", buf );
}
}
if ( DoLightIntensityDlg( &intensity ) == eIDOK ) {
g_iLastLightIntensity = intensity;
auto buf = u::buffer<10>();
- sprintf( buf, "%d", intensity );
+ buf.sprintf( "%d", intensity );
Node_getEntity( node )->setKeyValue( "light", buf );
}
}
NormalizeColor( g_entity_globals.color_entity );
auto buffer = u::buffer<128>();
- sprintf( buffer, "%g %g %g", g_entity_globals.color_entity[0],
+ buffer.sprintf( "%g %g %g", g_entity_globals.color_entity[0],
g_entity_globals.color_entity[1],
g_entity_globals.color_entity[2] );
}
auto buffer = u::buffer<128>();
- sprintf( buffer, "%g %g %g", g_entity_globals.color_entity[0],
+ buffer.sprintf( "%g %g %g", g_entity_globals.color_entity[0],
g_entity_globals.color_entity[1],
g_entity_globals.color_entity[2] );