From 9400a087e22f6ce734e157d1c77085eeb6c7cd7c Mon Sep 17 00:00:00 2001
From: BubbaGumpShrump <joshua.p.farrell@gmail.com>
Date: Wed, 19 Feb 2025 16:27:47 -0500
Subject: [PATCH] Location Fix

---
 AutoTrackR2/KillTrackR_MainScript.ps1 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/AutoTrackR2/KillTrackR_MainScript.ps1 b/AutoTrackR2/KillTrackR_MainScript.ps1
index 26f0ed2..a418a80 100644
--- a/AutoTrackR2/KillTrackR_MainScript.ps1
+++ b/AutoTrackR2/KillTrackR_MainScript.ps1
@@ -250,15 +250,18 @@ function Read-LogEntry {
 				if ($damageType -eq "Bullet" -or $weapon -like "apar_special_ballistic*") {
 					$ship = "Player"
 					$enemyShip = "Player"
+					$global:got_location = "NONE"
 				}
 				If ($ship -match $cleanupPattern){
 					$ship = $matches[1]
 				}
 				if ($ship -notmatch $shipManPattern){
 					$ship = "Player"
+					$global:got_location = "NONE"
 				}
 				If ($enemyShip -notmatch $shipManPattern -and $enemyShip -notlike "Passenger" ) {
 					$enemyShip = "Player"
+					$global:got_location = "NONE"
 				}
 			
 				# Repeatedly remove all suffixes