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
@@ -74,7 +74,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
if (!self.IsInWorld || self.IsDead)
|
||||
{
|
||||
owner.PlayerActor.Trait<PlayerResources>().GiveCash(refundableValue);
|
||||
owner.PlayerActor.Trait<PlayerResources>().RefundCash(refundableValue);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,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