fix wtf in PlayerResources
This commit is contained in:
@@ -54,10 +54,11 @@ namespace OpenRA.Traits
|
|||||||
const float displayCashFracPerFrame = .07f;
|
const float displayCashFracPerFrame = .07f;
|
||||||
const int displayCashDeltaPerFrame = 37;
|
const int displayCashDeltaPerFrame = 37;
|
||||||
int nextSiloAdviceTime = 0;
|
int nextSiloAdviceTime = 0;
|
||||||
|
|
||||||
void TickOre(Actor self)
|
void TickOre(Actor self)
|
||||||
{
|
{
|
||||||
OreCapacity = self.World.Queries.OwnedBy[Owner].WithTrait<IStoreOre>()
|
OreCapacity = self.World.Queries.OwnedBy[Owner].WithTrait<IStoreOre>()
|
||||||
.Sum(a => a.Actor.TraitsImplementing<IStoreOre>().Sum(b => b.Capacity));
|
.Sum(a => a.Trait.Capacity);
|
||||||
|
|
||||||
if (Ore > OreCapacity)
|
if (Ore > OreCapacity)
|
||||||
Ore = OreCapacity;
|
Ore = OreCapacity;
|
||||||
|
|||||||
Reference in New Issue
Block a user