aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/mechanics.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-11-12 17:42:32 +0100
committerDaniel Schadt <kingdread@gmx.de>2021-11-12 17:45:11 +0100
commit6f049aa5e1524169b302db4c6b8b9f5edb82df87 (patch)
treee07da5b055e39a3a9ac5cbd323ebe94fb97b0156 /src/statistics/mechanics.rs
parent09285afdb729565a484fe93a7958b330681a4bc1 (diff)
downloadevtclib-6f049aa5e1524169b302db4c6b8b9f5edb82df87.tar.gz
evtclib-6f049aa5e1524169b302db4c6b8b9f5edb82df87.tar.bz2
evtclib-6f049aa5e1524169b302db4c6b8b9f5edb82df87.zip
Fix player name parsing logic
The old code seemed to choke on WvW players, as the subgroup-calculating code did 0 - b'0', which underflowed. The proper way to parse a subgroup is not to take a single character anyway, because subgroups can be bigger than 10. The new code fixes that by properly extracting the "subgroup str literal" and then parsing it as an integer, with some special logic to detect an "empty" subgroup as it is in WvW.
Diffstat (limited to 'src/statistics/mechanics.rs')
0 files changed, 0 insertions, 0 deletions