mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 05:11:21 +00:00
Update Maps.ts to fix bugs
This commit is contained in:
@@ -5,7 +5,7 @@ import mena from "../../../resources/maps/Mena.png";
|
||||
import northAmerica from "../../../resources/maps/NorthAmerica.png";
|
||||
import blackSea from "../../../resources/maps/BlackSea.png";
|
||||
import africa from "../../../resources/maps/Africa.png";
|
||||
main
|
||||
|
||||
import { GameMapType } from "../../core/game/Game";
|
||||
|
||||
export function getMapsImage(map: GameMapType): string {
|
||||
@@ -22,10 +22,8 @@ export function getMapsImage(map: GameMapType): string {
|
||||
return northAmerica;
|
||||
case GameMapType.BlackSea:
|
||||
return blackSea;
|
||||
case GameMapType.Africa
|
||||
return Africa;
|
||||
|
||||
main
|
||||
case GameMapType.Africa:
|
||||
return africa; // Corrected the case for Africa
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user