src/dock_gui.cpp
changeset 6612 b511ba22a541
parent 6573 7624f942237f
child 6718 5a8b295aa345
child 6987 b0f13039bda2
equal deleted inserted replaced
6611:b7c7829c8fc7 6612:b511ba22a541
   154 	case WE_PLACE_MOUSEUP:
   154 	case WE_PLACE_MOUSEUP:
   155 		if (e->we.place.pt.x != -1) {
   155 		if (e->we.place.pt.x != -1) {
   156 			if ((e->we.place.userdata & 0xF) == VPM_X_AND_Y) { // dragged actions
   156 			if ((e->we.place.userdata & 0xF) == VPM_X_AND_Y) { // dragged actions
   157 				GUIPlaceProcDragXY(e);
   157 				GUIPlaceProcDragXY(e);
   158 			} else if (e->we.place.userdata == VPM_X_OR_Y) {
   158 			} else if (e->we.place.userdata == VPM_X_OR_Y) {
   159 				DoCommandP(e->we.place.tile, e->we.place.starttile, _ctrl_pressed, CcBuildCanal, CMD_BUILD_CANAL | CMD_AUTO | CMD_MSG(STR_CANT_BUILD_CANALS));
   159 				DoCommandP(e->we.place.tile, e->we.place.starttile, 0, CcBuildCanal, CMD_BUILD_CANAL | CMD_AUTO | CMD_MSG(STR_CANT_BUILD_CANALS));
   160 			}
   160 			}
   161 		}
   161 		}
   162 		break;
   162 		break;
   163 
   163 
   164 	case WE_ABORT_PLACE_OBJ:
   164 	case WE_ABORT_PLACE_OBJ: