File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Source/RunActivity/Viewer3D/Map Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1371,14 +1371,14 @@ private bool mapBehindGameForm()
13711371
13721372 int gameX0 = GameForm . Bounds . X ;
13731373 int gameY0 = GameForm . Bounds . Y ;
1374- int gameX1 = GameForm . Size . Width ;
1375- int gameY1 = GameForm . Size . Height ;
1374+ int gameX1 = gameX0 + GameForm . Size . Width ;
1375+ int gameY1 = gameY0 + GameForm . Size . Height ;
13761376
13771377 return
1378- ( ( ( mapX0 >= gameX0 ) && ( mapX0 <= gameX1 ) ) && ( ( mapY0 >= gameY0 ) && ( mapY0 <= gameY1 ) ) ) ||
1379- ( ( ( mapX0 >= gameX0 ) && ( mapX0 <= gameX1 ) ) && ( ( mapY1 >= gameY0 ) && ( mapY1 <= gameY1 ) ) ) ||
1380- ( ( ( mapX1 >= gameX0 ) && ( mapX1 <= gameX1 ) ) && ( ( mapY0 >= gameY0 ) && ( mapY0 <= gameY1 ) ) ) ||
1381- ( ( ( mapX1 >= gameX0 ) && ( mapX1 <= gameX1 ) ) && ( ( mapY1 >= gameY0 ) && ( mapY1 <= gameY1 ) ) ) ;
1378+ ( ( ( mapX0 > gameX0 ) && ( mapX0 < gameX1 ) ) && ( ( mapY0 > gameY0 ) && ( mapY0 < gameY1 ) ) ) ||
1379+ ( ( ( mapX0 > gameX0 ) && ( mapX0 < gameX1 ) ) && ( ( mapY1 > gameY0 ) && ( mapY1 < gameY1 ) ) ) ||
1380+ ( ( ( mapX1 > gameX0 ) && ( mapX1 < gameX1 ) ) && ( ( mapY0 > gameY0 ) && ( mapY0 < gameY1 ) ) ) ||
1381+ ( ( ( mapX1 > gameX0 ) && ( mapX1 < gameX1 ) ) && ( ( mapY1 > gameY0 ) && ( mapY1 < gameY1 ) ) ) ;
13821382 }
13831383
13841384 private void allowJoiningCheckbox_CheckedChanged ( object sender , EventArgs e )
You can’t perform that action at this time.
0 commit comments