Skip to content

Commit ca4711e

Browse files
Fix location highlighting when setting waypoints
1 parent 2cf1e37 commit ca4711e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/src/eventBusEventNames/mapCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class MapCommandEventBusEventNames {
1515
public static readonly MapCommandPanToLocation: MapCommandEventBusEventName<{ location: Location }> = toEventName('panToLocation');
1616
public static readonly MapCommandPanToPlayer: MapCommandEventBusEventName<{ player: Player }> = toEventName('panToPlayer');
1717
public static readonly MapCommandClearHighlightedLocations: MapCommandEventBusEventName<{}> = toEventName('clearHighlightedLocations');
18-
public static readonly MapCommandHighlightLocation: MapCommandEventBusEventName<{ object: MapObject<string>, opacity: number }> = toEventName('highlightLocation');
18+
public static readonly MapCommandHighlightLocation: MapCommandEventBusEventName<{ location: Location }> = toEventName('highlightLocation');
1919
public static readonly MapCommandClickStar: MapCommandEventBusEventName<{ starId: string }> = toEventName('clickStar');
2020
public static readonly MapCommandClickCarrier: MapCommandEventBusEventName<{ carrierId: string }> = toEventName('clickCarrier');
2121
public static readonly MapCommandRemoveLastRulerPoint: MapCommandEventBusEventName<{}> = toEventName('removeLastRulerPoint');

client/src/game/map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export class Map {
252252
const panToUser = () => this.panToUser(this.game!);
253253
const panToPlayer = ({ player }: { player: Player }) => this.panToPlayer(this.game!, player);
254254
const clearHighlightedLocations = () => this.clearCarrierHighlights();
255-
const highlightLocation = ({ object, opacity }: { object: MapObject<string>, opacity: number }) => this.highlightLocation(object.location, opacity);
255+
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);
258258
const removeLastRulerWaypoint = () => this.removeLastRulerPoint();

0 commit comments

Comments
 (0)