JensForstmann / tmt2

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

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

Closed JensForstmann closed 4 months ago

JensForstmann commented 2 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 4 months ago

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