Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyrs committed Aug 7, 2024
1 parent f0fe42b commit 0a0885c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/mapview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,9 @@ class MapView extends GameShell {

try {
console.log(`${Client.httpAddress}/worldmap.jag`);
if (+Client.getParameter('world') >= 998) {
Client.httpAddress = `${Client.httpAddress}/..`;
}
data = await downloadUrl(`${Client.httpAddress}/worldmap.jag`);
} catch (e) {
data = undefined;
Expand Down
3 changes: 3 additions & 0 deletions src/js/mesanim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ class Mesanim extends Client {
// this.packfiles[2] = await this.loadPack(`${Viewer.REPO}/data/src/pack/mesanim.pack`);
// this.packfiles[3] = await this.loadPack(`${Viewer.REPO}/data/src/pack/seq.pack`);

if (+Client.getParameter('world') >= 998) {
Client.httpAddress = `${Client.httpAddress}/..`;
}
const mesanim: Packet = new Packet(new Uint8Array(await downloadUrl(`${Client.httpAddress}/server/mesanim.dat`)));

await this.showProgress(75, 'Unpacking media');
Expand Down

0 comments on commit 0a0885c

Please sign in to comment.