Fixed stuff
This commit is contained in:
@@ -148,7 +148,6 @@ namespace YJMPD_UWP.Helpers
|
||||
public static double DegreeBearing(BasicGeoposition pos1, BasicGeoposition pos2)
|
||||
{
|
||||
var R = 6371000.0;
|
||||
Debug.WriteLine(pos2.Latitude);
|
||||
var φ1 = toRadian(pos1.Latitude);
|
||||
var φ2 = toRadian(pos2.Latitude);
|
||||
var Δφ = toRadian(pos2.Latitude - pos1.Latitude);
|
||||
|
||||
@@ -51,10 +51,6 @@ namespace YJMPD_UWP
|
||||
{
|
||||
if (e.Handled) return;
|
||||
|
||||
App.Game.MoveToStarted(new BasicGeoposition { Latitude = 51.591403, Longitude = 40.743948 });
|
||||
e.Handled = true;
|
||||
return;
|
||||
|
||||
if (App.Game.Status == Model.GameHandler.GameStatus.STARTED)
|
||||
{
|
||||
e.Handled = true;
|
||||
|
||||
@@ -31,7 +31,6 @@ namespace YJMPD_UWP.ViewModels
|
||||
|
||||
Degrees = (int)(angle + -e.Heading.HeadingMagneticNorth);
|
||||
NotifyPropertyChanged(nameof(Degrees));
|
||||
Debug.WriteLine(angle);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -46,8 +45,6 @@ namespace YJMPD_UWP.ViewModels
|
||||
double b = Util.Distance(e.Position.Coordinate.Point.Position, App.Game.Destination) * 1000;
|
||||
HeadingVisible = (int)b > 250;
|
||||
|
||||
Debug.WriteLine(HeadingVisible + " " + b);
|
||||
|
||||
NotifyPropertyChanged(nameof(HeadingVisible));
|
||||
NotifyPropertyChanged(nameof(InvHeadingVisible));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user