fixed a few things

This commit is contained in:
Olivier Gagnon
2021-10-14 02:07:05 -04:00
parent 3f1d4875e7
commit e245c2d3a7
11 changed files with 60 additions and 32 deletions
+7
View File
@@ -164,6 +164,13 @@ function evaluateVersionCompatibility(ver: string): void {
if (anyPlayer.corporation === 0) {
anyPlayer.corporation = null;
}
// convert all Messages to just filename to save space.
const home = anyPlayer.getHomeComputer();
for (let i = 0; i < home.messages.length; i++) {
if (home.messages[i].filename) {
home.messages[i] = home.messages[i].filename;
}
}
}
}