tail box close on soft reset

This commit is contained in:
Olivier Gagnon
2021-11-26 18:47:12 -05:00
parent 6e71258a53
commit f17870926b
2 changed files with 11 additions and 1 deletions
+3 -1
View File
@@ -28,6 +28,7 @@ import { dialogBoxCreate } from "./ui/React/DialogBox";
import { ProgramsSeen } from "./Programs/ui/ProgramsRoot";
import { InvitationsSeen } from "./Faction/ui/FactionsRoot";
import { LogBoxClearEvents } from "./ui/React/LogBoxManager";
const BitNode8StartingMoney = 250e6;
@@ -85,11 +86,12 @@ export function prestigeAugmentation(): void {
}
}
// Stop a Terminal action if there is onerror
// Stop a Terminal action if there is one.
if (Terminal.action !== null) {
Terminal.finishAction(Router, Player, true);
}
Terminal.clear();
LogBoxClearEvents.emit();
// Re-initialize things - This will update any changes
initFactions(); // Factions must be initialized before augmentations