fixes focus issue

This commit is contained in:
kazu
2018-07-26 08:44:53 +02:00
parent 0b7c8756a9
commit 9a07790ec6
5 changed files with 39 additions and 42 deletions

View File

@@ -252,8 +252,8 @@ void MV2DElementFloorObstacleWall::onNodeMove(MapView2D* v, const int userIdx, c
Point2 p;
float u = 0;
bool isects = intersects(l2, l1, true, p, &u);
if (u < 0.1) {u = 0.1;}
if (u > 0.9) {u = 0.9;}
if (u < 0.01) {u = 0.01;}
if (u > 0.99) {u = 0.99;}
if (userIdx >= 1000 && userIdx < 2000) {