JensForstmann / tmt2

TMT2 - Tournament Match Tracker 2: Supervise/Manage Counter-Strike 2 matches with ease!
MIT License
26 stars 6 forks source link

incorrect team score/side when loading round backups after halftime from before half time #14

Closed JensForstmann closed 7 months ago

JensForstmann commented 3 years ago

steps to reproduce:

now after 15th round the score reported via webhook is Team A 5, Team B 10

cause: https://github.com/JensForstmann/tmt2/blob/5580a4423930d1ac83ee532e738f4a0857bf0f23/backend/src/matchMap.ts#L169 If this gets calculated it still thinks it's A10:B6 so it thinks teams are in switched state.

JensForstmann commented 7 months ago

Closing this because it's a minor issue without any side effects (fixes itself) and without any easy solution.