Skip to content

Commit

Permalink
chg: Spareparts log parts loading. !minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lcgamboa committed Jan 18, 2023
1 parent 6cc7cbe commit 9bdfaa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spareparts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ bool CSpareParts::LoadConfig(lxString fname) {
} else if (!strcmp(name, "version")) {
// use planed in future
} else if ((parts[partsc_] = create_part(name, x, y))) {
printf("Spare parts: parts[%02i] (%s) created \n", partsc_, name);
parts[partsc_]->ReadPreferences(temp);
parts[partsc_]->SetId(partsc_);
if (newformat) {
Expand All @@ -417,7 +418,7 @@ bool CSpareParts::LoadConfig(lxString fname) {
}
partsc_++;
} else {
printf("Error loading part: %s \n", name);
printf("Spare parts: Error loading part: %s \n", name);
lxString temp;
temp.Printf("Spare parts:\nError loading part: %s \n", name);
PICSimLab.RegisterError(temp);
Expand Down

0 comments on commit 9bdfaa7

Please sign in to comment.