Skip to content

Commit

Permalink
Merge pull request #1023 from splewis/development
Browse files Browse the repository at this point in the history
0.14.5
  • Loading branch information
nickdnk authored Apr 25, 2023
2 parents 0696f59 + be3df1f commit 39617da
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ Whenever you update your Get5 plugin, remember to **always** update the `transla
Please see the [installation instructions](https://splewis.github.io/get5/latest/installation/#installation) for
details.

# 0.14.5

#### 2023-04-25

Bugfix.

1. Prevent the presence of coaches in teams from messing up the stats in JSON events.

# 0.14.4

#### 2023-04-16
Expand Down Expand Up @@ -35,7 +43,7 @@ Hotfix of stuff that should have been in 0.14.0.

# 0.14.0

*Note: Removed from releases. Please use 0.14.3 instead. All changes below still apply.*
*Note: Removed from releases. Please use newest 0.14.x instead. All changes below still apply.*

#### 2023-04-08

Expand Down
10 changes: 5 additions & 5 deletions scripting/get5/stats.sp
Original file line number Diff line number Diff line change
Expand Up @@ -1070,16 +1070,16 @@ static void ConvertKeyValueStatusToJSON(const JSON_Array team) {
return;
}

if (g_StatsKv.GetNum(STAT_COACHING)) {
g_StatsKv.GoBack();
return;
}

char name[MAX_NAME_LENGTH];
char auth[AUTH_LENGTH];

do {

// Don't include coaches.
if (g_StatsKv.GetNum(STAT_COACHING)) {
continue;
}

g_StatsKv.GetSectionName(auth, sizeof(auth));
g_StatsKv.GetString(STAT_NAME, name, sizeof(name));
team.PushObject(new Get5StatsPlayer(
Expand Down
2 changes: 1 addition & 1 deletion scripting/get5/version.sp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PLUGIN_VERSION "0.14.4-dev"
#define PLUGIN_VERSION "0.14.5-dev"
// This MUST be the latest version in x.y.z semver format followed by -dev.
// If this is not consistently applied, the update-checker might malfunction.
// In official releases, the CI flow will remove the -dev suffix when compiling the plugin.
Expand Down

0 comments on commit 39617da

Please sign in to comment.