Ticket #4595: ticket4595-A22.patch

File ticket4595-A22.patch, 617 bytes (added by mimo, 7 years ago)

version of the patch for A22 as the timer internal structure changed (array -> object)

  • binaries/data/mods/public/simulation/components/Timer.js

     
    144144    }
    145145};
    146146
     147Timer.prototype.OnGlobalEntityRenamed = function(msg)
     148{
     149    for (let timer of this.timers.values())
     150    {
     151        if (timer.functionName == "MissileHit" && timer.data.target == msg.entity)
     152            timer.data.target = msg.newentity;
     153    }
     154};
     155
    147156Engine.RegisterSystemComponentType(IID_Timer, "Timer", Timer);