From b8eb3cf268c5b790db3390076cb2bbfa78e4ac9a Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Thu, 21 Jan 2016 21:20:31 +0100 Subject: [PATCH] Fixed stuff --- YJMPD-UWP/Helpers/Util.cs | 1 - YJMPD-UWP/MainPage.xaml.cs | 4 ---- YJMPD-UWP/ViewModels/MatchVM.cs | 3 --- 3 files changed, 8 deletions(-) diff --git a/YJMPD-UWP/Helpers/Util.cs b/YJMPD-UWP/Helpers/Util.cs index cbf5176..776fd2d 100644 --- a/YJMPD-UWP/Helpers/Util.cs +++ b/YJMPD-UWP/Helpers/Util.cs @@ -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); diff --git a/YJMPD-UWP/MainPage.xaml.cs b/YJMPD-UWP/MainPage.xaml.cs index 717ad93..65b08cc 100644 --- a/YJMPD-UWP/MainPage.xaml.cs +++ b/YJMPD-UWP/MainPage.xaml.cs @@ -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; diff --git a/YJMPD-UWP/ViewModels/MatchVM.cs b/YJMPD-UWP/ViewModels/MatchVM.cs index fa85d04..50627a5 100644 --- a/YJMPD-UWP/ViewModels/MatchVM.cs +++ b/YJMPD-UWP/ViewModels/MatchVM.cs @@ -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)); });