Don't count refunds as income and deduct them from expenses.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
4823c3365f
commit
3f73e7a1fb
@@ -100,7 +100,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
if (!self.IsInWorld || self.IsDead)
|
||||
{
|
||||
owner.PlayerActor.Trait<PlayerResources>().GiveCash(refundableValue);
|
||||
owner.PlayerActor.Trait<PlayerResources>().RefundCash(refundableValue);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
if (!self.IsInWorld || self.IsDead)
|
||||
{
|
||||
owner.PlayerActor.Trait<PlayerResources>().GiveCash(refundableValue);
|
||||
owner.PlayerActor.Trait<PlayerResources>().RefundCash(refundableValue);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user