| 662 | int sely = sel.y; |
| 663 | |
| 664 | loopvj(copybuffers) |
| 665 | { |
| 666 | block *copyblock = copybuffers[j]; |
| 667 | int dx = copyblock->x - copybuffers[0]->x, dy = copyblock->y - copybuffers[0]->y; |
| 668 | |
| 669 | sel.xs = copyblock->xs; |
| 670 | sel.ys = copyblock->ys; |
| 671 | sel.x = selx + dx; |
| 672 | sel.y = sely + dy; |
| 673 | if(!correctsel(sel) || sel.xs!=copyblock->xs || sel.ys!=copyblock->ys) { conoutf("incorrect selection"); return; } |
| 674 | makeundo(sel); |
| 675 | blockpaste(*copyblock, sel.x, sel.y, true, texmap); |
| 676 | if(mp) netblockpaste(*copyblock, sel.x, sel.y, true); |
| 677 | } |
| 678 | } |
| 679 | } |
| 680 | COMMAND(paste, ""); |
nothing calls this directly
no test coverage detected