From d1bd3931a8b8320e682532c1a2ca78a5db8bfa1f Mon Sep 17 00:00:00 2001 From: Andras Belicza Date: Fri, 24 Mar 2023 11:16:16 +0100 Subject: [PATCH] Fix a team melee detection bug --- cmd/screp/screp.go | 2 +- rep/replay.go | 1 + repparser/repparser.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/screp/screp.go b/cmd/screp/screp.go index 7576fe0..88186de 100644 --- a/cmd/screp/screp.go +++ b/cmd/screp/screp.go @@ -24,7 +24,7 @@ import ( const ( appName = "screp" - appVersion = "v1.11.1" + appVersion = "v1.11.2" appAuthor = "Andras Belicza" appHome = "https://github.com/icza/screp" ) diff --git a/rep/replay.go b/rep/replay.go index 1117d06..987993d 100644 --- a/rep/replay.go +++ b/rep/replay.go @@ -551,6 +551,7 @@ func (r *Replay) computeMeleeTeams() { for _, slotIDC := range slotIDSlotIDs[slotIDB] { if slotIDC == slotIDA { // found! + found = true break } } diff --git a/repparser/repparser.go b/repparser/repparser.go index 7857bbe..0356502 100644 --- a/repparser/repparser.go +++ b/repparser/repparser.go @@ -60,7 +60,7 @@ import ( const ( // Version is a Semver2 compatible version of the parser. - Version = "v1.11.1" + Version = "v1.11.2" ) var (