(svn r11533) -Codechange: Rename some unclear clear_x prices member names.
While at it, remove one unused entry on the clear_price_table array. It is based on ground type, and the unused one was referencing a non existing one.
This commit is contained in:
@@ -324,8 +324,8 @@ CommandCost CmdPlantTree(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||
}
|
||||
|
||||
switch (GetClearGround(tile)) {
|
||||
case CLEAR_FIELDS: cost.AddCost(_price.clear_3); break;
|
||||
case CLEAR_ROCKS: cost.AddCost(_price.clear_2); break;
|
||||
case CLEAR_FIELDS: cost.AddCost(_price.clear_fields); break;
|
||||
case CLEAR_ROCKS: cost.AddCost(_price.clear_rocks); break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user