summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-19 10:31:30 +0000
committerrubidium <rubidium@openttd.org>2009-04-19 10:31:30 +0000
commit329cabab4fe4b963c1b928740e0d9f38f7e63b01 (patch)
treea601e141ae386f6a3a400c146dc605dcb03c20d3 /src/depot_gui.cpp
parent2a2b40461d478406aef9d12093e07ed8ae5b987f (diff)
downloadopenttd-329cabab4fe4b963c1b928740e0d9f38f7e63b01.tar.xz
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index af62b9b5a..b094aa524 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -487,7 +487,7 @@ struct DepotWindow : Window {
DepotGUIAction mode = this->GetVehicleFromDepotWndPt(x, y, &v, &gdvp);
/* share / copy orders */
- if (_thd.place_mode != VHM_NONE && mode != MODE_ERROR) {
+ if (_thd.place_mode != HT_NONE && mode != MODE_ERROR) {
_place_clicked_vehicle = (this->type == VEH_TRAIN ? gdvp.head : v);
return;
}
@@ -509,7 +509,7 @@ struct DepotWindow : Window {
this->sel = v->index;
this->SetDirty();
- SetObjectToPlaceWnd(image, GetVehiclePalette(v), VHM_DRAG, this);
+ SetObjectToPlaceWnd(image, GetVehiclePalette(v), HT_DRAG, this);
switch (v->type) {
case VEH_TRAIN:
@@ -783,7 +783,7 @@ struct DepotWindow : Window {
};
_place_clicked_vehicle = NULL;
- SetObjectToPlaceWnd(clone_icons[this->type], PAL_NONE, VHM_RECT, this);
+ SetObjectToPlaceWnd(clone_icons[this->type], PAL_NONE, HT_RECT, this);
} else {
ResetObjectToPlace();
}