optimise
This commit is contained in:
@@ -4,13 +4,13 @@ void _GroundLogPrintErrors() {
|
||||
if (Ground.Log.errorCount != 0) {
|
||||
printf("%zu errors:\n", Ground.Log.errorCount);
|
||||
for (GroundSize i = 0; i < Ground.Log.errorCount; i++) {
|
||||
printf(" \e[0;31m%zu: %s\n\e[0m", Ground.Log.errorCount, Ground.Log.errors[i]);
|
||||
printf(" \e[0;31m%zu: %s\n\e[0m", i, Ground.Log.errors[i]);
|
||||
}
|
||||
}
|
||||
if (Ground.Log.warningCount != 0) {
|
||||
printf("%zu warnings:\n", Ground.Log.warningCount);
|
||||
for (GroundSize i = 0; i < Ground.Log.warningCount; i++) {
|
||||
printf(" \e[0;33m%zu: %s\n\e[0m", Ground.Log.warningCount, Ground.Log.warnings[i]);
|
||||
printf(" \e[0;33m%zu: %s\n\e[0m", i, Ground.Log.warnings[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user