@screeps/renderer 1.6.4-arena → 1.6.6-arena

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/renderer.js CHANGED
@@ -53766,8 +53766,6 @@ function fillRoads(states) {
53766
53766
  scope = params.scope,
53767
53767
  stateExtra = params.stateExtra,
53768
53768
  _params$world = params.world,
53769
- app = _params$world.app,
53770
- terrainLayer = _params$world.layers.terrain,
53771
53769
  _params$world$options = _params$world.options,
53772
53770
  CELL_SIZE = _params$world$options.CELL_SIZE,
53773
53771
  _params$world$options2 = _params$world$options.lighting,
@@ -53816,17 +53814,12 @@ function fillRoads(states) {
53816
53814
  var l = CELL_SIZE;
53817
53815
  var lb = l;
53818
53816
  var graphics = new Graphics();
53819
- graphics.parentLayer = terrainLayer;
53820
- graphics.zIndex = 1;
53821
- if (!(app.renderer instanceof Renderer)) {
53817
+ graphics.zIndex = -1;
53818
+ if (lighting === 'disabled') {
53822
53819
  graphics.tint = 0xa0a0a0;
53823
- } else {
53824
- if (lighting === 'disabled') {
53825
- graphics.tint = 0xa0a0a0;
53826
- }
53827
- if (lighting === 'low') {
53828
- graphics.tint = 0xc0c0c0;
53829
- }
53820
+ }
53821
+ if (lighting === 'low') {
53822
+ graphics.tint = 0xc0c0c0;
53830
53823
  }
53831
53824
  var color = decorationFloorLandscape ? colorBrightness(parseInt(decorationFloorLandscape.roadsColor.substring(1), 16), decorationFloorLandscape.roadsBrightness) : ROAD_COLOR;
53832
53825
  graphics.clear();