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()
1371
1371
1372
1372
int gameX0 = GameForm . Bounds . X ;
1373
1373
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 ;
1376
1376
1377
1377
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 ) ) ) ;
1382
1382
}
1383
1383
1384
1384
private void allowJoiningCheckbox_CheckedChanged ( object sender , EventArgs e )
You can’t perform that action at this time.
0 commit comments