Better print fix

dev-ui
krzys-h 2013-05-12 13:05:32 +02:00
parent cec406ea31
commit 06cf93f466
1 changed files with 2 additions and 1 deletions

View File

@ -4921,9 +4921,10 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject)
}
if (line[0] == '\n') continue; // Ignore empty lines
if (line[0] == '\0') continue; // Ignore empty lines
if (read[0] != 0) continue; // Ignore when loading saved game
GetLogger()->Error("Syntax error in file '%s' (line %d): Unknown command: %s\n", filename, lineNum, line); // Don't add \n at the end of log message - it's included in line variable
GetLogger()->Error("Syntax error in file '%s' (line %d): Unknown command: %s", filename, lineNum, line); // Don't add \n at the end of log message - it's included in line variable
}
fclose(file);