Closed Ashesh3 closed 1 year ago
I mean sure... if someone manages to get 0 hits in comp game :D
I mean sure... if someone manages to get 0 hits in comp game :D
Guess I got a noob in my lobby today then xD
Edit: Or maybe they disconnected for the whole match ¯\_(ツ)/¯
When total_hits is 0, this results in DivisionByZero Exception since we are dividing by 0 here to calculate head shot %. This PR adds a check for that and handles it.