minor refactoring

This commit is contained in:
Garux
2025-02-04 12:15:12 +05:00
parent 1935f030c5
commit 4a368deef0
74 changed files with 907 additions and 968 deletions
+2 -2
View File
@@ -273,7 +273,7 @@ void Pointfile_Parse( CPointfile& pointfile ){
while ( *data )
{
Vector3 v;
if ( sscanf( data,"%f %f %f", &v[0], &v[1], &v[2] ) != 3 ) {
if ( sscanf( data, "%f %f %f", &v[0], &v[1], &v[2] ) != 3 ) {
globalWarningStream() << "Corrupt point file, line " << line << '\n';
break;
}
@@ -287,7 +287,7 @@ void Pointfile_Parse( CPointfile& pointfile ){
}
// deal with zhlt style point files.
if ( *data == '-' ) {
if ( sscanf( data,"- %f %f %f", &v[0], &v[1], &v[2] ) != 3 ) {
if ( sscanf( data, "- %f %f %f", &v[0], &v[1], &v[2] ) != 3 ) {
globalWarningStream() << "Corrupt point file, line " << line << '\n';
break;
}