Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bd402d8

Browse filesBrowse files
committed
Fix JSON stats when coaches are on the team
1 parent 0696f59 commit bd402d8
Copy full SHA for bd402d8

File tree

Expand file treeCollapse file tree

3 files changed

+14
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+14
-6
lines changed
Open diff view settings
Collapse file

‎CHANGELOG.md‎

Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ Whenever you update your Get5 plugin, remember to **always** update the `transla
88
Please see the [installation instructions](https://splewis.github.io/get5/latest/installation/#installation) for
99
details.
1010

11+
# 0.14.5
12+
13+
#### 2023-04-25
14+
15+
Bugfix.
16+
17+
1. Prevent the presence of coaches in teams from messing up the stats in JSON events.
18+
1119
# 0.14.4
1220

1321
#### 2023-04-16
Collapse file

‎scripting/get5/stats.sp‎

Copy file name to clipboardExpand all lines: scripting/get5/stats.sp
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,16 +1070,16 @@ static void ConvertKeyValueStatusToJSON(const JSON_Array team) {
10701070
return;
10711071
}
10721072

1073-
if (g_StatsKv.GetNum(STAT_COACHING)) {
1074-
g_StatsKv.GoBack();
1075-
return;
1076-
}
1077-
10781073
char name[MAX_NAME_LENGTH];
10791074
char auth[AUTH_LENGTH];
10801075

10811076
do {
10821077

1078+
// Don't include coaches.
1079+
if (g_StatsKv.GetNum(STAT_COACHING)) {
1080+
continue;
1081+
}
1082+
10831083
g_StatsKv.GetSectionName(auth, sizeof(auth));
10841084
g_StatsKv.GetString(STAT_NAME, name, sizeof(name));
10851085
team.PushObject(new Get5StatsPlayer(
Collapse file

‎scripting/get5/version.sp‎

Copy file name to clipboardExpand all lines: scripting/get5/version.sp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define PLUGIN_VERSION "0.14.4-dev"
1+
#define PLUGIN_VERSION "0.14.5-dev"
22
// This MUST be the latest version in x.y.z semver format followed by -dev.
33
// If this is not consistently applied, the update-checker might malfunction.
44
// In official releases, the CI flow will remove the -dev suffix when compiling the plugin.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.