From d02cdd91ca4c43bd79501fec48ab8279a03d0b06 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 19 Apr 2009 21:26:06 +0000 Subject: (svn r16095) -Change/Feature-ish: make the first 4 rail building tools behave more like autorail --- src/viewport_type.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/viewport_type.h') 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, -- cgit v1.2.3-54-g00ecf