mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
minor refactoring
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user