mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Reset turnCach at the begin of the turn
This commit is contained in:
parent
911285e625
commit
e9339591c2
1 changed files with 1 additions and 1 deletions
|
|
@ -130,6 +130,7 @@ BasesManager.prototype.createBase = function(gameState, ent, type = BaseManager.
|
|||
/** TODO check if the new anchorless bases should be added to addBase */
|
||||
BasesManager.prototype.checkEvents = function(gameState, events)
|
||||
{
|
||||
this.turnCache = {};
|
||||
let addBase = false;
|
||||
|
||||
for (const evt of events.Destroy)
|
||||
|
|
@ -760,7 +761,6 @@ BasesManager.prototype.update = function(gameState, queues, events)
|
|||
{
|
||||
Engine.ProfileStart("BasesManager update");
|
||||
|
||||
this.turnCache = {};
|
||||
this.assignGatherers();
|
||||
let nbBases = this.baseManagers.length;
|
||||
let activeBase = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue