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 0c19112 commit 16acccbCopy full SHA for 16acccb
pkg/demoinfocs/datatables.go
@@ -898,10 +898,12 @@ func (p *parser) bindWeaponS2(entity st.Entity) {
898
// This happens when:
899
// - The player is inside the buy zone
900
// - The player's money has increased AND the weapon entity is destroyed at the same tick (unfortunately the money is updated first)
901
- var owner *common.Player
902
- var oldOwnerMoney int
903
- var lastMoneyUpdateTick int
904
- var lastMoneyIncreased bool
+ var (
+ owner *common.Player
+ oldOwnerMoney int
+ lastMoneyUpdateTick int
905
+ lastMoneyIncreased bool
906
+ )
907
908
entity.Property("m_hOwnerEntity").OnUpdate(func(val st.PropertyValue) {
909
weaponOwner := p.GameState().Participants().FindByPawnHandle(val.Handle())
0 commit comments