Ticket #3236: Cost.js.patch

File Cost.js.patch, 374 bytes (added by Vladislav Belov, 9 years ago)

Fix population bonus updates

  • Cost.js

     
    9797    var popDifference = newPopBonus - this.populationBonus;
    9898    if (!popDifference)
    9999        return;
     100    this.populationBonus = newPopBonus;
    100101
    101102    var cmpPlayer = QueryOwnerInterface(this.entity, IID_Player);
    102103    if (cmpPlayer)