diff --git a/Application/Application.csproj b/Application/Application.csproj index 8e83b7887..96740c3fd 100644 --- a/Application/Application.csproj +++ b/Application/Application.csproj @@ -56,10 +56,10 @@ - PreserveNewest + Always - PreserveNewest + Always diff --git a/Application/DefaultSettings.json b/Application/DefaultSettings.json index 9bf26c6f0..eeff723d2 100644 --- a/Application/DefaultSettings.json +++ b/Application/DefaultSettings.json @@ -1,4 +1,4 @@ -{ +{ "AutoMessagePeriod": 60, "AutoMessages": [ "This server uses ^5IW4M Admin v{{VERSION}} ^7get it at ^5raidmax.org/IW4MAdmin", @@ -846,155 +846,6 @@ "Name": "zm_transit" } ] - }, - { - "Game": "IW6", - "Maps": [ - { - "Alias": "Prision Break", - "Name": "mp_prisonbreak" - }, - { - "Alias": "Octane", - "Name": "mp_dart" - }, - { - "Alias": "Tremor", - "Name": "mp_lonestar" - }, - { - "Alias": "Freight", - "Name": "mp_frag" - }, - { - "Alias": "Whiteout", - "Name": "mp_snow" - }, - { - "Alias": "Stormfront", - "Name": "mp_fahrenheit" - }, - { - "Alias": "Siege", - "Name": "mp_hashima" - }, - { - "Alias": "Warhawk", - "Name": "mp_warhawk" - }, - { - "Alias": "Sovereign", - "Name": "mp_sovereign" - }, - { - "Alias": "Overload", - "Name": "mp_zebra" - }, - { - "Alias": "Stonehaven", - "Name": "mp_skeleton" - }, - { - "Alias": "Chasm", - "Name": "mp_chasm" - }, - { - "Alias": "Flooded", - "Name": "mp_flooded" - }, - { - "Alias": "Strikezone", - "Name": "mp_strikezone" - }, - { - "Alias": "Free Fall", - "Name": "mp_descent_new" - }, - { - "Alias": "Unearthed", - "Name": "mp_dome_ns" - }, - { - "Alias": "Collision", - "Name": "mp_ca_impact" - }, - { - "Alias": "Behemoth", - "Name": "mp_ca_behemoth" - }, - { - "Alias": "Ruins", - "Name": "mp_battery3" - }, - { - "Alias": "Pharaoh", - "Name": "mp_dig" - }, - { - "Alias": "Favela", - "Name": "mp_favela_iw6" - }, - { - "Alias": "Mutiny", - "Name": "mp_pirate" - }, - { - "Alias": "Departed", - "Name": "mp_zulu" - }, - { - "Alias": "Dynasty", - "Name": "mp_conflict" - }, - { - "Alias": "Goldrush", - "Name": "mp_mine" - }, - { - "Alias": "Showtime", - "Name": "mp_shipment_ns" - }, - { - "Alias": "Subzero", - "Name": "mp_zerosub" - }, - { - "Alias": "Ignition", - "Name": "mp_boneyard_ns" - }, - { - "Alias": "Containment", - "Name": "mp_ca_red_river" - }, - { - "Alias": "Bayview", - "Name": "mp_ca_rumble" - }, - { - "Alias": "Fog", - "Name": "mp_swamp" - }, - { - "Alias": "Point of Contact", - "Name": "mp_alien_town" - }, - { - "Alias": "Nightfall", - "Name": "mp_alien_armory" - }, - { - "Alias": "Mayday", - "Name": "mp_alien_beacon" - }, - { - "Alias": "Awakening", - "Name": "mp_alien_dlc3" - }, - { - "Alias": "Exodus", - "Name": "mp_alien_last" - } - ] } ], "GameStrings": { diff --git a/WebfrontCore/Views/Client/Statistics/Advanced.cshtml b/WebfrontCore/Views/Client/Statistics/Advanced.cshtml index f918c4cb2..9501a2bbb 100644 --- a/WebfrontCore/Views/Client/Statistics/Advanced.cshtml +++ b/WebfrontCore/Views/Client/Statistics/Advanced.cshtml @@ -16,7 +16,8 @@ const string meleeKey = "MOD_MELEE"; var suicideKeys = new[] {"MOD_SUICIDE", "MOD_FALLING"}; - var config = (GameStringConfiguration) ViewBag.Config; + // if they've not copied default settings config this could be null + var config = (GameStringConfiguration) ViewBag.Config ?? new GameStringConfiguration(); var headerClass = Model.Level == EFClient.Permission.Banned ? "bg-danger" : "bg-primary"; var textClass = Model.Level == EFClient.Permission.Banned ? "text-danger" : "text-primary"; diff --git a/WebfrontCore/wwwroot/js/advanced_stats.js b/WebfrontCore/wwwroot/js/advanced_stats.js index cbb07336d..d33f1396d 100644 --- a/WebfrontCore/wwwroot/js/advanced_stats.js +++ b/WebfrontCore/wwwroot/js/advanced_stats.js @@ -253,6 +253,10 @@ function drawHitLocationChart(context, background, scalar, width, height) { const color = '#' + red + green + '0077'; const location = hitLocations[hit.name]; + + if (location === undefined) { + return true; + } if (location.type === 'polygon') { drawPolygon(context, scalar, location.p1, location.p2, location.p3, location.p4, color);