diff options
author | alberth <alberth@openttd.org> | 2010-12-23 14:24:34 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-12-23 14:24:34 +0000 |
commit | 90780fd25bab45fb97304337f10b78c9210a7190 (patch) | |
tree | e89a067d86fa4e9b8034660396cbb0fc2e0eb27a /src/tilehighlight_type.h | |
parent | 1ba348914dc78ae72026aff568a2e09442be4bcb (diff) | |
download | openttd-90780fd25bab45fb97304337f10b78c9210a7190.tar.xz |
(svn r21608) -Codechange: Move diagnonal rectangle dragging detection completely to tile highlighting.
Diffstat (limited to 'src/tilehighlight_type.h')
-rw-r--r-- | src/tilehighlight_type.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tilehighlight_type.h b/src/tilehighlight_type.h index b61dda3c5..26278968e 100644 --- a/src/tilehighlight_type.h +++ b/src/tilehighlight_type.h @@ -27,6 +27,7 @@ enum HighLightStyle { HT_LINE = 0x008, ///< used for autorail highlighting (longer streches), lower bits: direction HT_RAIL = 0x080, ///< autorail (one piece), lower bits: direction HT_VEHICLE = 0x100, ///< vehicle is accepted as target as well (bitmask) + HT_DIAGONAL = 0x200, ///< Also allow 'diagonal rectangles'. HT_DRAG_MASK = 0x0F8, ///< masks the drag-type /* lower bits (used with HT_LINE and HT_RAIL): @@ -72,6 +73,8 @@ struct TileHighlightData { ViewportPlaceMethod select_method; ///< The method which governs how tiles are selected. ViewportDragDropSelectionProcess select_proc; ///< The procedure that has to be called when the selection is done. + + bool IsDraggingDiagonal(); }; #endif /* TILEHIGHLIGHT_TYPE_H */ |