equal
deleted
inserted
replaced
155 } else if (_railstation.dragdrop) { |
155 } else if (_railstation.dragdrop) { |
156 VpStartPlaceSizing(tile, VPM_X_AND_Y_LIMITED, DDSP_BUILD_STATION); |
156 VpStartPlaceSizing(tile, VPM_X_AND_Y_LIMITED, DDSP_BUILD_STATION); |
157 VpSetPlaceSizingLimit(_patches.station_spread); |
157 VpSetPlaceSizingLimit(_patches.station_spread); |
158 } else { |
158 } else { |
159 DoCommandP(tile, |
159 DoCommandP(tile, |
160 _railstation.orientation | (_railstation.numtracks << 8) | (_railstation.platlength << 16), |
160 _railstation.orientation | (_railstation.numtracks << 8) | (_railstation.platlength << 16) | (_ctrl_pressed << 24), |
161 _cur_railtype | (_railstation.station_class << 8) | (_railstation.station_type << 16), CcStation, |
161 _cur_railtype | (_railstation.station_class << 8) | (_railstation.station_type << 16), CcStation, |
162 CMD_BUILD_RAILROAD_STATION | CMD_NO_WATER | CMD_AUTO | CMD_MSG(STR_100F_CAN_T_BUILD_RAILROAD_STATION)); |
162 CMD_BUILD_RAILROAD_STATION | CMD_NO_WATER | CMD_AUTO | CMD_MSG(STR_100F_CAN_T_BUILD_RAILROAD_STATION)); |
163 } |
163 } |
164 } |
164 } |
165 |
165 |
663 w = ex - sx + 1; |
663 w = ex - sx + 1; |
664 h = ey - sy + 1; |
664 h = ey - sy + 1; |
665 if (!_railstation.orientation) Swap(w, h); |
665 if (!_railstation.orientation) Swap(w, h); |
666 |
666 |
667 DoCommandP(TileXY(sx, sy), |
667 DoCommandP(TileXY(sx, sy), |
668 _railstation.orientation | (w << 8) | (h << 16), |
668 _railstation.orientation | (w << 8) | (h << 16) | (_ctrl_pressed << 24), |
669 _cur_railtype | (_railstation.station_class << 8) | (_railstation.station_type << 16), CcStation, |
669 _cur_railtype | (_railstation.station_class << 8) | (_railstation.station_type << 16), CcStation, |
670 CMD_BUILD_RAILROAD_STATION | CMD_NO_WATER | CMD_AUTO | CMD_MSG(STR_100F_CAN_T_BUILD_RAILROAD_STATION)); |
670 CMD_BUILD_RAILROAD_STATION | CMD_NO_WATER | CMD_AUTO | CMD_MSG(STR_100F_CAN_T_BUILD_RAILROAD_STATION)); |
671 } |
671 } |
672 |
672 |
673 /* Check if the currently selected station size is allowed */ |
673 /* Check if the currently selected station size is allowed */ |