Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ void MoveSelected(short X, short Y) {
MapObject obj = Level.Objects[Selection.Object];
AddDirty(new Point(obj.X, obj.Y));
Point p = new Point((short) (X), (short) (Y));
p = GridAdjust(p);
short polygon_index = Level.GetEnclosingPolygon(p);
if (polygon_index != -1) {
obj.X = p.X;
Expand Down Expand Up @@ -1112,13 +1113,16 @@ public void ButtonPress(short X, short Y, EditorModifiers mods) {
Select(X, Y);
}
} else if (!RightClick(mods)) {
Point p = new Point(X, Y);

if (Tool == Tool.Line) {
StartLine(X, Y);
} else if (Tool == Tool.Fill) {
undoSet = false;
Fill(X, Y);
} else if (Tool == Tool.Object) {
PlaceObject(X, Y);
p = GridAdjust(p);
PlaceObject(p.X, p.Y);
} else if (Tool == Tool.Annotation) {
PlaceAnnotation(X, Y);
} else if (Tool == Tool.VisualMode) {
Expand Down