Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Commit

Permalink
shut up eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienVesper committed Sep 10, 2023
1 parent a75945f commit db9b93a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/game/objects/building.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@ export class Building extends GameObject {
for (const zoomRegion of this.zoomRegions) {
if (zoomRegion.min) {
if (rectCollision(zoomRegion.min, zoomRegion.max, player.position, 1)) {
return zoomRegion.zoom !== undefined
? zoomRegion.zoom
: Constants.scopeZoomRadius[player.isMobile ? "mobile" : "desktop"]["1xscope"];
return zoomRegion.zoom ?? Constants.scopeZoomRadius[player.isMobile ? "mobile" : "desktop"]["1xscope"];
}
}
}
Expand Down

0 comments on commit db9b93a

Please sign in to comment.