src/dock_gui.cpp
branchcpp_gui
changeset 6303 84c215fc8eb8
parent 6298 c30fe89622df
child 6308 646711c5feaa
equal deleted inserted replaced
6302:bd80897189ba 6303:84c215fc8eb8
   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: