if (numplayers > maxplayers) {
cout << "Warning: this level contains more players than allowed" << endl;
}
+ unsigned j = 1;
for (int i = 1; i < numplayers; i++) {
- unsigned j = 1;
try {
Person::players.push_back(shared_ptr<Person>(new Person(tfile, mapvers, j)));
j++;
} catch (InvalidPersonException e) {
+ cerr << "Invalid Person found in " << name << endl;
}
}
if (visibleloading)
firstload = 1;
leveltime = 0;
+ wonleveltime = 0;
visibleloading = 0;
}
accountactive->winCampaignLevel(whichchoice, bonustotal, leveltime);
scoreadded = 1;
} else {
+ wonleveltime = leveltime;
accountactive->winLevel(whichlevel, bonustotal - startbonustotal, leveltime);
}
won = 1;