Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.87 KB | None | 0 0
  1. Index: BuildRestrictions.js
  2. ===================================================================
  3. --- BuildRestrictions.js    (revisione 19348)
  4. +++ BuildRestrictions.js    (copia locale)
  5. @@ -270,7 +270,8 @@
  6.  
  7.         if (this.template.Distance.MinDistance)
  8.         {
  9. -           var dist = +this.template.Distance.MinDistance;
  10. +
  11. +           var dist = ApplyValueModificationsToEntity("BuildRestrictions/Distance/MinDistance", +this.template.Distance.MinDistance, this.entity);
  12.             var nearEnts = cmpRangeManager.ExecuteQuery(this.entity, 0, dist, [cmpPlayer.GetPlayerID()], IID_BuildRestrictions).filter(filter);
  13.             if (nearEnts.length)
  14.             {
  15. @@ -284,7 +285,7 @@
  16.                 result.parameters = {
  17.                     "name": name,
  18.                     "category": cat,
  19. -                   "distance": this.template.Distance.MinDistance
  20. +                   "distance": dist
  21.                 };
  22.                 result.translateParameters = ["name", "category"];
  23.                 return result;  // Fail
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement