make junctions on shift-clicking
[potlatch2.git] / net / systemeD / halcyon / WayUI.as
index e8bcb5afcafdc7d879303020271b56c64dcf0acd..0ef5f281da8b8002b3cbf48e4344a96f5744be23 100755 (executable)
@@ -462,9 +462,17 @@ package net.systemeD.halcyon {
             return null;
                }
 
+               // ------------------------------------------------------------------------------------------
+               // Interaction
+
         override protected function mouseEvent(event:MouseEvent):void {
                        paint.map.entityMouseEvent(event, way);
         }
 
+               public function hitTest(x:Number, y:Number):Way {
+                       if (hitzone.hitTestPoint(x,y,true)) { return way; }
+                       return null;
+               }
+
        }
 }