summaryrefslogtreecommitdiff
path: root/src/tree_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-11-27 16:02:13 +0000
committerbelugas <belugas@openttd.org>2007-11-27 16:02:13 +0000
commite07925a5cbddc5a45197ef7147e9165eae1b4d5a (patch)
treeaee628dd42ccd2800cd318427a96731d0c6cc442 /src/tree_cmd.cpp
parenta22bdeb8e302d309f57a556665138d1f56bfe783 (diff)
downloadopenttd-e07925a5cbddc5a45197ef7147e9165eae1b4d5a.tar.xz
(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.
Diffstat (limited to 'src/tree_cmd.cpp')
-rw-r--r--src/tree_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp
index 97fbb36b0..3b985965a 100644
--- a/src/tree_cmd.cpp
+++ b/src/tree_cmd.cpp
@@ -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;
}