src/dock_gui.cpp
changeset 6286 a67f2c376804
parent 6247 7d81e3a5d803
child 6491 00dc414c909d
equal deleted inserted replaced
6285:de042bb24d41 6286:a67f2c376804
   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: