Mercurial > repos > IBBoard.WarFoundry.API
diff api/Objects/Unit.cs @ 125:c60fd5664698
Re #53: Create WarFoundry save class to store army as file
* Fix exceptions thrown by official .Net XML parsing of namespace names
Also:
* Remove unnecessary notification of name change
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 24 Aug 2009 21:12:18 +0000 |
parents | 52e8c3cdde10 |
children | 57f7b80757ea |
line wrap: on
line diff
--- a/api/Objects/Unit.cs Mon Aug 24 19:32:55 2009 +0000 +++ b/api/Objects/Unit.cs Mon Aug 24 21:12:18 2009 +0000 @@ -100,7 +100,6 @@ private void CalcCost() { - String oldName = HasDefaultName() ? Name : null; double oldpoints = points; points = type.CostPerTrooper * AdditionalTroopers + type.BaseUnitCost; @@ -113,11 +112,6 @@ { OnPointsValueChanged(oldpoints, points); } - - if (oldName!=null) - { - OnNameChanged(oldName, Name); - } } public int AdditionalTroopers