Skip to content

Commit

Permalink
Fix loading of custom map textures.
Browse files Browse the repository at this point in the history
  • Loading branch information
vikpe committed Jun 12, 2024
1 parent 2edd982 commit 1ccd4a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/games/fte/map_textures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ import { cloudfrontUrl } from "./assets.ts";

export function getMapTextures(mapName: string): FteAssets {
const filenames = texturesPerMapName[mapName] ?? [];
const filepaths = filenames.map((t) =>
cloudfrontUrl(`fte/id1/textures/${mapName}/${t}`),
);
const filepaths = filenames.map((t) => `qw/textures/${mapName}/${t}`);
const assets: FteAssets = {};

for (const path of filepaths) {
assets[path] = path;
assets[path] = cloudfrontUrl(`fte/${path}`);
}

return assets;
Expand Down

0 comments on commit 1ccd4a2

Please sign in to comment.