diff options
Diffstat (limited to 'src/tool/rect_room_tool.rs')
| -rw-r--r-- | src/tool/rect_room_tool.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool/rect_room_tool.rs b/src/tool/rect_room_tool.rs index 9445787..da23fd7 100644 --- a/src/tool/rect_room_tool.rs +++ b/src/tool/rect_room_tool.rs @@ -55,7 +55,7 @@ impl Tool for RectRoomTool { return; } - map.push_rect_room(Rect::bounding_rect(pos1, pos2)); + map.push_polygon_room(Rect::bounding_rect(pos1, pos2).into()); self.unfinished_rect = None; } else { self.unfinished_rect = Some((*mouse_pos_m, *mouse_pos_m)); @@ -69,7 +69,7 @@ impl Tool for RectRoomTool { return; } - map.push_rect_room(Rect::bounding_rect(pos1, pos2)); + map.push_polygon_room(Rect::bounding_rect(pos1, pos2).into()); self.unfinished_rect = None; } } |
