X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=events.cpp;h=88b0d4a7d0273dc7a9a727e41b49409afd981d54;hb=7a960fbf75a145f30e34f5f803062d91afb81165;hp=0a50f3b26de7b5d7c6ce7985ba2de3aa076da3a9;hpb=280e1391ec1d4ea4e498377726d7613874335943;p=pkanalytics diff --git a/events.cpp b/events.cpp index 0a50f3b..88b0d4a 100644 --- a/events.cpp +++ b/events.cpp @@ -79,6 +79,8 @@ QVariant EventsModel::data(const QModelIndex &index, int role) const type = "On defense"; } else if (type == "Catch") { type = "Catch/take"; + } else if (type == "Was d") { + type = "Was d-ed"; } return QString::fromUtf8(type); @@ -403,7 +405,7 @@ EventsModel::Status EventsModel::get_status_at(uint64_t t) num_touches = 0; time_spent_in_stoppage = 0; } - if (e.type == "drop" || e.type == "throwaway") { + if (e.type == "drop" || e.type == "was_d" || e.type == "throwaway") { set_defense(); num_touches = 0; } @@ -521,7 +523,7 @@ void EventsModel::set_formation_at(uint64_t t, bool offense, unsigned formation) e.type == "stoppage" || e.type == "reset" || e.type == "set_defense" || e.type == "set_offense" || e.type == "throwaway" || e.type == "their_throwaway" || - e.type == "drop" || e.type == "defense" || e.type == "interception" || + e.type == "drop" || e.type == "was_d" || e.type == "defense" || e.type == "interception" || e.type == "pull" || e.type == "pull_landed" || e.type == "pull_oob" || e.type == "their_pull" || e.type == "formation_offense" || e.type == "formation_defense") { backdate_point = e.t + 1;