Fix more bugs

This commit is contained in:
Olivier Gagnon 2021-05-17 18:00:22 -04:00
parent de113a7b92
commit 6df824613e
2 changed files with 5 additions and 1 deletions

@ -244,6 +244,9 @@ export const CONSTANTS: IMap<any> = {
Export
* Exporting now gives +1 favor to all joined factions every 24h.
Corp
* Self-fund with an invalid name no longer takes away 150b anyway.
Misc.
* ls now correctly lists all files.
* importing auto save+reloads (@Dawe)
@ -253,5 +256,6 @@ export const CONSTANTS: IMap<any> = {
confirmation dialog.
* Fix some ram not displayed as 0.00GB
* Fix error message throw undefined variable error
* City hall now has some generic text if you can't create a corp yet.
`,
}

@ -140,7 +140,6 @@ export function createStartCorporationPopup(p: IPlayer): void {
dialogBoxCreate("You don't have enough money to create a corporation! You need $150b");
return false;
}
p.loseMoney(150e9);
const companyName = nameInput.value;
if (companyName == null || companyName == "") {
@ -149,6 +148,7 @@ export function createStartCorporationPopup(p: IPlayer): void {
}
p.startCorporation(companyName);
p.loseMoney(150e9);
const worldHeader = document.getElementById("world-menu-header");
if (worldHeader instanceof HTMLElement) {