Skip to content

Commit

Permalink
fix small graphical glitch on the map
Browse files Browse the repository at this point in the history
  • Loading branch information
rand256 committed Jan 17, 2020
1 parent c472b15 commit 9d82aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/zone/js-modules/vacuum-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export function VacuumMap(canvasElement) {
usingOwnTransform(ctx, (ctx, transform) => {
// we'll define locations drawing order (currently it's reversed) so the former location types is drawn over the latter ones
let zoneNumber = 0;
let activeLocation = null, locationTypes = {Zone: 2, VirtualWall: 3, ForbiddenZone: 4, CurrentCleaningZone: 5};
let activeLocation = null, locationTypes = {GotoPoint: 0, Zone: 2, VirtualWall: 3, ForbiddenZone: 4, CurrentCleaningZone: 5};
locations.sort((a,b) => {return locationTypes[b.constructor.name] - locationTypes[a.constructor.name]; });
locations.forEach(location => {
if (location instanceof GotoPoint) {
Expand Down

0 comments on commit 9d82aab

Please sign in to comment.