Ticket #3637: noInfinity.diff
File noInfinity.diff, 633 bytes (added by , 8 years ago) |
---|
-
binaries/data/mods/public/simulation/components/ResourceSupply.js
51 51 this.gatherers.push([]); 52 52 53 53 this.infinite = !isFinite(+this.template.Amount); 54 if (this.infinite) 55 this.amount = null; // TODO hack to not serialize Infinity. 54 56 55 57 [this.type,this.subType] = this.template.Type.split('.'); 56 58 this.cachedType = { "generic" : this.type, "specific" : this.subType };