summaryrefslogtreecommitdiff
path: root/src/tree_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-12-24 15:08:19 +0000
committeralberth <alberth@openttd.org>2010-12-24 15:08:19 +0000
commit852e647bcc892e3cf65990968b9ad200e83af435 (patch)
tree7d2f7591d2ffc3fecd614630c9ba733d6d828959 /src/tree_gui.cpp
parent9a5cce382fb56ea91f95a56bc7b83b0ccbb69e1b (diff)
downloadopenttd-852e647bcc892e3cf65990968b9ad200e83af435.tar.xz
(svn r21627) -Codechange: Remove _place_proc global variable.
Diffstat (limited to 'src/tree_gui.cpp')
-rw-r--r--src/tree_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree_gui.cpp b/src/tree_gui.cpp
index 0c69e5008..bc76c8be8 100644
--- a/src/tree_gui.cpp
+++ b/src/tree_gui.cpp
@@ -105,13 +105,13 @@ public:
case BTW_TYPE_31: case BTW_TYPE_32: case BTW_TYPE_33: case BTW_TYPE_34:
if (widget - BTW_TYPE_11 >= this->count) break;
- if (HandlePlacePushButton(this, widget, SPR_CURSOR_TREE, HT_RECT, NULL)) {
+ if (HandlePlacePushButton(this, widget, SPR_CURSOR_TREE, HT_RECT)) {
this->tree_to_plant = (TreeType)(this->base + widget - BTW_TYPE_11);
}
break;
case BTW_TYPE_RANDOM: // tree of random type.
- if (HandlePlacePushButton(this, BTW_TYPE_RANDOM, SPR_CURSOR_TREE, HT_RECT, NULL)) {
+ if (HandlePlacePushButton(this, BTW_TYPE_RANDOM, SPR_CURSOR_TREE, HT_RECT)) {
this->tree_to_plant = TREE_INVALID;
}
break;