mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Remove the first isResourceExhausted
This function is overwritten later.
This redundancy has been introduced in 4e664dd712 before only the
second existed.
This commit is contained in:
parent
161da119ba
commit
ad08462626
1 changed files with 0 additions and 12 deletions
|
|
@ -481,18 +481,6 @@ BasesManager.prototype.GetTCResGatherer = function(resource)
|
|||
return 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* flag a resource as exhausted
|
||||
*/
|
||||
BasesManager.prototype.isResourceExhausted = function(resource)
|
||||
{
|
||||
const check = "exhausted-" + resource;
|
||||
if (this.turnCache[check] == undefined)
|
||||
this.turnCache[check] = this.basesManager.isResourceExhausted(resource);
|
||||
|
||||
return this.turnCache[check];
|
||||
};
|
||||
|
||||
/**
|
||||
* returns the number of bases with a cc
|
||||
* ActiveBases includes only those with a built cc
|
||||
|
|
|
|||
Loading…
Reference in a new issue