This commit is contained in:
vita10gy
2013-02-24 16:08:12 -06:00
parent ad234ce84d
commit af5bb02db7

View File

@ -51,8 +51,7 @@ window.plugin.portalWeakness.portalAdded = function(data) {
if(portal_weakness < 0) { if(portal_weakness < 0) {
portal_weakness = 0; portal_weakness = 0;
} }
if(portal_weakness > 1) if(portal_weakness > 1) {
{
portal_weakness = 1; portal_weakness = 1;
} }
@ -69,8 +68,7 @@ window.plugin.portalWeakness.portalAdded = function(data) {
} }
fill_opacity = Math.round(fill_opacity*100)/100; fill_opacity = Math.round(fill_opacity*100)/100;
var params = {fillColor: color, fillOpacity: fill_opacity}; var params = {fillColor: color, fillOpacity: fill_opacity};
if(resCount < 8) if(resCount < 8) {
{
// Hole per missing resonator // Hole per missing resonator
var dash = new Array(8-resCount + 1).join("1,4,") + "100,0" var dash = new Array(8-resCount + 1).join("1,4,") + "100,0"
params["dashArray"] = dash; params["dashArray"] = dash;