diff options
-rw-r--r-- | web/nms.gathering.org/nms2/map.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/nms.gathering.org/nms2/map.js b/web/nms.gathering.org/nms2/map.js index d7581cc..b59b0a8 100644 --- a/web/nms.gathering.org/nms2/map.js +++ b/web/nms.gathering.org/nms2/map.js @@ -744,8 +744,10 @@ function findSwitch(x,y) { */ function setSwitchColor(sw, c) { - nms.switches_now.switches[sw]['color'] = c; - drawSwitch(sw); + if(nms.switches_now.switches[sw]['color'] != c) { + nms.switches_now.switches[sw]['color'] = c; + drawSwitch(sw); + } } /* |