summaryrefslogtreecommitdiff
path: root/src/viewport_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-19 21:26:06 +0000
committerrubidium <rubidium@openttd.org>2009-04-19 21:26:06 +0000
commitd02cdd91ca4c43bd79501fec48ab8279a03d0b06 (patch)
tree1dda5950b4ccf0cd5037e3b0cf24e4ebbeca4479 /src/viewport_type.h
parent90ebf211dcc9997ea1f0bb627cac2f5593efcec1 (diff)
downloadopenttd-d02cdd91ca4c43bd79501fec48ab8279a03d0b06.tar.xz
(svn r16095) -Change/Feature-ish: make the first 4 rail building tools behave more like autorail
Diffstat (limited to 'src/viewport_type.h')
-rw-r--r--src/viewport_type.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/viewport_type.h b/src/viewport_type.h
index 09bf2dcf3..6822339cc 100644
--- a/src/viewport_type.h
+++ b/src/viewport_type.h
@@ -49,14 +49,17 @@ enum {
/** Viewport place method (type of highlighted area and placed objects) */
enum ViewportPlaceMethod {
- VPM_X_OR_Y = 0, ///< drag in X or Y direction
- VPM_FIX_X = 1, ///< drag only in X axis
- VPM_FIX_Y = 2, ///< drag only in Y axis
- VPM_RAILDIRS = 3, ///< all rail directions
- VPM_X_AND_Y = 4, ///< area of land in X and Y directions
- VPM_X_AND_Y_LIMITED = 5, ///< area of land of limited size
- VPM_SIGNALDIRS = 6, ///< similiar to VMP_RAILDIRS, but with different cursor
+ VPM_X_OR_Y = 0, ///< drag in X or Y direction
+ VPM_FIX_X = 1, ///< drag only in X axis
+ VPM_FIX_Y = 2, ///< drag only in Y axis
+ VPM_X_AND_Y = 3, ///< area of land in X and Y directions
+ VPM_X_AND_Y_LIMITED = 4, ///< area of land of limited size
+ VPM_FIX_HORIZONTAL = 5, ///< drag only in horizontal direction
+ VPM_FIX_VERTICAL = 6, ///< drag only in vertical direction
+ VPM_RAILDIRS = 0x40, ///< all rail directions
+ VPM_SIGNALDIRS = 0x80, ///< similiar to VMP_RAILDIRS, but with different cursor
};
+DECLARE_ENUM_AS_BIT_SET(ViewportPlaceMethod);
/** Drag and drop selection process, or, what to do with an area of land when
* you've selected it. */
@@ -73,9 +76,7 @@ enum ViewportDragDropSelectionProcess {
DDSP_BUILD_BRIDGE,
/* Rail specific actions */
- DDSP_PLACE_RAIL_NE,
- DDSP_PLACE_RAIL_NW,
- DDSP_PLACE_AUTORAIL,
+ DDSP_PLACE_RAIL,
DDSP_BUILD_SIGNALS,
DDSP_BUILD_STATION,
DDSP_REMOVE_STATION,