ioan-chera / eureka-editor

Eureka is a cross-platform map editor for the DOOM engine games.
http://eureka-editor.sourceforge.net/
66 stars 12 forks source link

Merging vertices and clearing degenerate linedefs fails while dragging linedef #111

Closed ioan-chera closed 11 months ago

ioan-chera commented 2 years ago

Let's say we have this wall:

|
|
|
|
x-------x3
        |
2       |1
        |
        |
x-------x4
|
|
|
|

Dragging line 1 to the column occupied by number 2 will not merge vertices 3 and 4 as expected. The misbehaviour gets worse if there are multiple sectors involved.

This is altogether a missing feature. Currently Eureka only performs splitting or merging when dragging a single vertex. Nothing happens when dragging multiple vertices or anything like linedefs or sectors. Since it's a very common operation and we never want broken layouts, the behaviour needs to be consistent in all modes. So here's a check list: