Skip to content

Commit 25f923a

Browse files
Merge pull request #1422 from solaris-games/dev
Fix error and fix clearing highlighted locations
2 parents 891a0cc + 16c71a9 commit 25f923a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/src/game/animation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AnimationService {
2727
})
2828
}
2929

30-
app.ticker.add(animation)
30+
app?.ticker.add(animation)
3131

3232
setTimeout(() => {
3333
container.removeChild(graphics)

client/src/game/map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export class Map {
251251
const panToObject = ({ object }: { object: MapObject<string> }) => this.panToObject(object);
252252
const panToUser = () => this.panToUser(this.game!);
253253
const panToPlayer = ({ player }: { player: Player }) => this.panToPlayer(this.game!, player);
254-
const clearHighlightedLocations = () => this.clearCarrierHighlights();
254+
const clearHighlightedLocations = () => this.clearHighlightedLocations();
255255
const highlightLocation = ({ location }: { location: Location }) => this.highlightLocation(location);
256256
const clickStar = ({ starId }: { starId: string }) => this.clickStar(starId);
257257
const clickCarrier = ({ carrierId }: { carrierId: string }) => this.clickCarrier(carrierId);

0 commit comments

Comments
 (0)