Added cancel costs factor.

This commit is contained in:
johns 2001-02-28 15:34:23 +00:00
parent e87e91382c
commit f259a6277a

View file

@ -209,7 +209,8 @@ global void HandleActionBuilded(Unit* unit)
DropOutOnSide(peon,LookingW,type->TileWidth,type->TileHeight);
// Player gets back 75% of the original cost for a building.
PlayerAddCostsFactor(unit->Player,unit->Stats->Costs,75);
PlayerAddCostsFactor(unit->Player,unit->Stats->Costs,
CancelBuildingCostsFactor);
// Cancel building
DestroyUnit(unit);
return;