Initial version of blueprints (copy/paste)

This commit is contained in:
dP
2020-12-22 02:35:34 +03:00
parent d084a4b8a8
commit feebf5499a
15 changed files with 1009 additions and 39 deletions
+1 -1
View File
@@ -2415,7 +2415,7 @@ bool HandleViewportClicked(const ViewPort *vp, int x, int y, bool double_click)
}
/* Vehicle placement mode already handled above. */
if ((_thd.place_mode & HT_DRAG_MASK) != HT_NONE) {
if ((_thd.place_mode & HT_DRAG_MASK) != HT_NONE || _thd.place_mode == CM_HT_BLUEPRINT_PLACE) {
if (_thd.place_mode & HT_POLY) {
/* In polyline mode double-clicking on a single white line, finishes current polyline.
* If however the user double-clicks on a line that has a white and a blue section,