(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.
This commit is contained in:
@@ -23,8 +23,8 @@ struct UnmovableSpec {
|
||||
uint8 buy_cost_multiplier;
|
||||
uint8 sell_cost_multiplier;
|
||||
|
||||
Money GetRemovalCost() const { return (_price.clear_roughland * this->sell_cost_multiplier); }
|
||||
Money GetBuildingCost() const { return (_price.clear_roughland * this->buy_cost_multiplier); }
|
||||
Money GetRemovalCost() const { return (_price[PR_CLEAR_ROUGH] * this->sell_cost_multiplier); }
|
||||
Money GetBuildingCost() const { return (_price[PR_CLEAR_ROUGH] * this->buy_cost_multiplier); }
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user