We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20d12ff commit 919a289Copy full SHA for 919a289
pkg/demoinfocs/game_events.go
@@ -2,6 +2,7 @@ package demoinfocs
2
3
import (
4
"fmt"
5
+ "math"
6
7
"github.com/golang/geo/r3"
8
"github.com/markus-wa/go-unassert"
@@ -661,6 +662,9 @@ func (geh gameEventHandler) playerConnect(data map[string]*msg.CSVCMsg_GameEvent
661
662
var playerIndex int
663
if geh.parser.isSource2() {
664
playerIndex = pl.UserID
665
+ if !pl.IsFakePlayer && !pl.IsHltv && pl.XUID > 0 && pl.UserID <= math.MaxUint8 {
666
+ pl.UserID |= math.MaxUint8 << 8
667
+ }
668
} else {
669
playerIndex = int(data["index"].GetValByte())
670
}
0 commit comments