From: Steinar H. Gunderson Date: Wed, 3 May 2023 22:19:40 +0000 (+0200) Subject: Do not backdate substitutions to before the match start. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0c2456af6161a3e5b0accdcd7bdfca59a75a446e;p=pkanalytics Do not backdate substitutions to before the match start. --- diff --git a/events.cpp b/events.cpp index e7db8f4..e6ed579 100644 --- a/events.cpp +++ b/events.cpp @@ -361,7 +361,7 @@ void EventsModel::set_team_at(uint64_t t, const set &new_team) if (e.t > t) { break; } - if (e.type == "goal" || e.type == "their_goal" || e.type == "stoppage" || e.type == "reset") { + if (e.type == "goal" || e.type == "their_goal" || e.type == "stoppage" || e.type == "reset" || e.type == "set_offense" || e.type == "set_defense") { backdate_point = e.t + 1; } if (e.player_id.has_value() && !new_team.count(*e.player_id)) {