mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-20 22:45:58 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user