Update Maps.ts to fix bugs

This commit is contained in:
SunnyBoyWTF
2025-02-19 10:31:41 -05:00
committed by GitHub
parent e12b6b4a27
commit e67cffa314
+3 -5
View File
@@ -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 "";
}