summaryrefslogtreecommitdiff
path: root/depot_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-24 12:56:14 +0000
committerDarkvater <darkvater@openttd.org>2006-10-24 12:56:14 +0000
commit1204eeacfeaf0177d1513d71c8eb318778c8d8c3 (patch)
tree211cb87f4e7e415472a146417006282f304eb961 /depot_gui.c
parente08dfce57ccff647a008a30393cb4e16d66e30d0 (diff)
downloadopenttd-1204eeacfeaf0177d1513d71c8eb318778c8d8c3.tar.xz
(svn r6922) -Feature: Add proper cloning sprites and cursors, different for each vehicle. Big thanks
to MB for the initial design and skidd13 for the iconified version(s). -Codechange: Change the autorenew sprites from recycle to upgrade (skidd13) -Codechange: Change the shared orders icon (MeusH) -Add missing table/files.h file to VS project file.
Diffstat (limited to 'depot_gui.c')
-rw-r--r--depot_gui.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/depot_gui.c b/depot_gui.c
index f4a91dc32..3df450308 100644
--- a/depot_gui.c
+++ b/depot_gui.c
@@ -692,8 +692,13 @@ static void DepotWndProc(Window *w, WindowEvent *e)
ToggleWidgetLoweredState(w, DEPOT_WIDGET_CLONE);
if (IsWindowWidgetLowered(w, DEPOT_WIDGET_CLONE)) {
+ static const CursorID clone_icons[] = {
+ SPR_CURSOR_CLONE_TRAIN, SPR_CURSOR_CLONE_ROADVEH,
+ SPR_CURSOR_CLONE_SHIP, SPR_CURSOR_CLONE_AIRPLANE
+ };
+
_place_clicked_vehicle = NULL;
- SetObjectToPlaceWnd(SPR_CURSOR_CLONE, VHM_RECT, w);
+ SetObjectToPlaceWnd(clone_icons[WP(w, depot_d).type - VEH_Train], VHM_RECT, w);
} else {
ResetObjectToPlace();
}